Having a xml file so formed:
<chapter id="1">
<text line="1"> <p>HTML content 1</p> </text>
<text line="2"> <q>HTML<q> content 2 </text>
<text line="3"> HTML <b>content 3<b> </text>
</chapter>
Using DOMDocument, what query i can use for get all content associated to <chapter id="1">...</chapter>
with HTML tag included? Having so as output something as:
<p>HTML content 1</p>
<q>HTML<q> content 2
HTML <b>content 3<b>
PS: As from note, i think which question ask something of different. Just i ask if is possible and how process a content inside a node ignoring html-tag if present when not is possible modify original xml.