I
Isaac Gerg
I have a server running PHP on linux. For a website, I want to have the
webdocuments stored in XML, then parsed by PHP code to add the
appropriate titles, headers, menus, etc.
So, I want to embed some HTML into XML. Can I do this? If so, what
functions do I use to parse this? Below is an example XML doc.
<xml>
<title>Document Title</title>
<menu level="2">
<item>Home</item>
<item>Products</item>
</menu>
<content>
<p>
Now introduction, our <B>NEW</B> product line!
</content>
</xml>
The php will parse title and menu easily... but how i can i get it to
return 'content' as a string which includes all that HTML?
Any help deeply appreciated.
webdocuments stored in XML, then parsed by PHP code to add the
appropriate titles, headers, menus, etc.
So, I want to embed some HTML into XML. Can I do this? If so, what
functions do I use to parse this? Below is an example XML doc.
<xml>
<title>Document Title</title>
<menu level="2">
<item>Home</item>
<item>Products</item>
</menu>
<content>
<p>
Now introduction, our <B>NEW</B> product line!
</content>
</xml>
The php will parse title and menu easily... but how i can i get it to
return 'content' as a string which includes all that HTML?
Any help deeply appreciated.