Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 2, 2008, 10:40 pm
rate this thread
I have a couple of XML files that represent articles. Each XML file is
unique. Meaning that overall the structure is the same but some tags
in the xml file are not in the same place or doesn't exist.
<p>This is a paragrap</p>
I want to use PHP to transform the XML file into readable HTML tags.
I've been doing some testing with SimpleXML file and it kind of does
half of the things...
I guess my question is, how do i create a XML file with HTML tags and
then use PHP to output it.
Maybe i should change the XML file to reflect HTML tags and use
SimpleXML (or else) to go through all the tag in XML to output? Can i
use HTML tags in XML and simply output it using php?