How can I force the SimpleXML to ignore HTML tags?

Uncefcexesope

New Member
I try to start using xml parsing via SimpleXML. And I can not find how to do a basic thing:
I have XML file that contains HTML tags, like this:\[code\]<root><title>some text</title><content>some <span>text</span></content></root>\[/code\]So I need to parse only xml tags like \[code\]root\[/code\] \[code\]title\[/code\] \[code\]content\[/code\] and to ignore html tags like \[code\]span\[/code\]. Also I need to ignore things like \[code\]&nbsp\[/code\].
I'm sure there is a simple way to do it. But could not find how to do it.
 
Back
Top