I have an XML file like the following:
...
<MyElement>Introduction:<br />
...
</MyElement>
...
Are there any way to return "Introduction:" and the rest after </br>
of that element?
I am using PHP and SimpleXML. Naively use echo $document->MyElement
shows "Introduction:...", which mixed up the Introduction line and the content.
` – DevZer0 Jul 10 '13 at 23:13
` is a legal XML tag (as long as the DTD or schema allows it), and XML tags can appear within a text node. – Earth Engine Jul 10 '13 at 23:22