Using PHP to parse XML

From A2Wiki

Jump to: navigation, search

If you are getting this error message in your PHP scripts trying to parse XML:

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'

it probably means your XML document is not valid. Use an XML validator like http://www.stg.brown.edu/service/xmlvalid/ to ensure your document is correct before opening a support request.

Personal tools