I'm sorry if the title was confusing. I'm working on an XML parser that will act similar as HTML, but make it easier for non coders. The parser will read a XML node, and print out corresponding HTML code. The difficulty I came up to is I want to be able to access all the content inside a node as a string (including any child nodes). Right now I'm using PHP's Simple XML.
<parent>
some plane text. some Plane text. <child prop="test" /> more plane text
</parent>
I want to be able to print out:
echo $xml->parent[0]; as
some plane text. some Plane text. <child prop="test" /> more plane text
From here I will do sub string searches that will pull out the child node and handle it differently. In simple, I want to print out some text, then read the child node, and continue printing out text till a new child node is read.
Thanks for the help!!