XML error checking

All XML data is parsed by the application and checked for errors prior to processing . Missing quotes, broken tags, bad structure, and overlapping tags will cause errors. Diagnostics will display any parse errors and the corresponding code. Table 5.3a describes each error code.

Parse status should be 0 (zero) on any XML data. Correct the XML structure if parse errors are present.

 
XML Parse Error Codes
0 No error; parse was completed successfully
-2  A CDATA section was not properly terminated
-3  The XML declaration was not properly terminated
-4  The DOCTYPE declaration was not properly terminated
-5  A comment was not properly terminated
-6  An XML element was malformed
-7  Out of memory
-8  An attribute value was not properly terminated
-9  A start-tag was not matched with an end-tag
-10  An end-tag was encountered without a matching start-tag
Table 5.3a XML parse errors