F
francescomoi
Hi.
I want to parse this XML file:
-----------------
<doc>
<item>
<name>John Morrow</name>
<contact type="email">[email protected]</contact>
Blah blah
</item>
</doc>
--------------------
I'm able to get 'John Morrow':
$doc->getDocumentElement()->getElementsByTagName('item')->
getElementsByTagName('name')->item(0)->getFirstChild->getNodeValue;
But I don't know to get 'Blah Blah'. Any suggestion?
Thank you very much.
I want to parse this XML file:
-----------------
<doc>
<item>
<name>John Morrow</name>
<contact type="email">[email protected]</contact>
Blah blah
</item>
</doc>
--------------------
I'm able to get 'John Morrow':
$doc->getDocumentElement()->getElementsByTagName('item')->
getElementsByTagName('name')->item(0)->getFirstChild->getNodeValue;
But I don't know to get 'Blah Blah'. Any suggestion?
Thank you very much.