
 Randy Ahn - 2007-01-06 00:42:24
I can't seem to parse past a couple of nodes -- can you take a look at this and tell me what's wrong with my syntax? thanks
Here's the relevant code:
echo $xml->document->component->structuredBody->component->section->subject->manufacturedProduct->manufacturedMedicine->name->_value;
Here's the relevant xml fragment:
<document xmlns="urn:hl7-org:v3" xmlns:voc="http://www.hl7.org/v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://www.fda.gov/oc/datacouncil/schemas/spl/spl.xsd">
	<id root="L762ac371-bb8b-47e7-b48f-e80d452c9dd4" />
	<code code="34391-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Human Prescription Drug Label" />
	<title mediaType="text/x-hl7-title+xml">EstroGel® 0.06%<br />(estradiol gel)</title>
	<effectiveTime value="20060720" />
	<setId root="L762ac371-bb8b-47e7-b48f-e80d452c9dd4" />
	<versionNumber value="1" />
	<author>
		<time />
		<assignedEntity>
			<representedOrganization>
				<name>Ascend Therapeutics, Inc.</name>
			</representedOrganization>
		</assignedEntity>
	</author>
	<component>
		<structuredBody>
			<component>
				<section>
					<id root="4EC41EF0-2C55-DAC8-A8FC-A9369C9C836E" />
					<effectiveTime value="20060720" />
					<subject>
						<manufacturedProduct>
							<manufacturedMedicine>
								<code code="17139-0617" codeSystem="2.16.840.1.113883.6.69" />
								<name>EstroGel</name>