I'm having issues parsing an xml string that is stored in a MSSQL DB. The problem seems to be the syntax of the xml.
For example:
<?xml version="1.0"?><Page><Item id="1" autopts="1" pts="1"/><Item id="2" autopts="1" pts="1"/>....</Page>
I cannot parse this string, however if I rewrite the string in more "complete" xml such as:
<?xml version=\"1.0\" ?> <Page> <Item> <id>1</id> <autopts>1</autopts> <pts>1</pts> </Item>....</Page>
This works fine. I'm guessing it is a problem with the closing tags. I am currently using the simplexml functions, I have also tried dom.
Does anyone have any ideas on how I can parse this string with the utils in PHP?
Thanks,