Re: [PHP] xml processing cdata

2008-05-09 Thread Brady Mitchell
The last comment on http://php.net/manual/en/function.simplexml-load-string.php is what you need: simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA); Brady On May 9, 2008, at 1250PM, Chris W wrote: I have an xml file with a cdata element like the one below. How would I

[PHP] xml processing cdata

2008-05-09 Thread Chris W
I have an xml file with a cdata element like the one below. How would I use the php xml functions to extract that cdata and save it as a pdf file? obj-type="1" system="0"> The code I have is this... $in = fopen("test.xml", 'r'); $XMLStr = ''; while (!feof($in)) { $LineNumber++; $XMLSt