Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "Non-standard" xml file parsing...
July 26, 2008, 5:33 am
rate this thread
I used simplexml_load_file function to parse all my xml feeds,
and found it to be the easiest option available. But, i recently
signed up for a feed which sends the xml file without the first
mandatory line, i.e, <?xml version="1.0" encoding="ISO-8859-1" ?>....
I learned that simplexml_ does not parse without the above
line, is this true, if yes, is there a way to add the above line once
retrieving the contents and passing it to simplexml_ function.
PLEASE HELP, I don't want to parse using good old dom or other