errorCode


Constant Value Description
ecNoError0File openned and parsed sucesfully
ecTagNesting1Tag nesting error
ecTagCase2Case of closing tag incorrect
ecMultipleRoots3More than one root element found
ecInvalidElementName4Invalid element name
ecInvalidAttributeName5Invalid attribute name
ecMissingQuotes6Quotes not used around attribute value
ecTagNotClosed7Tag not closed
ecXMLFileNotFound8XML file not found
ecTMXMLdecs9More than one XML declaration was found
ecWPXMLDec10XML declaration in wrong place
ecTMDocType11More than one DOCTYPE declaration
ecInvXMLDec12Invalid XML Declaration
ecInvDocType13Invalid DOCTYPE Declaration
ecInvAttribute14Invalid attribute
ecInvPIName15Invalid PI Name
ecInvPI16Invalid PI
ecInvTag17Invalid tag
ecInvCharInAttribute18Invalid character in an attribute value
ecInvXMLDecVer19Invalid attribute in xml declaration, if attributename1="." or expecting version attribute if attributename is something else
ecUnkEleType20Unknown element type
ecMultipleAttributes21Two attributes of the same name, in the same element
ecEOFbeforeRoot22End of file reached before the root element is found
ecEOFbeforeRootClosed23End of file reached before close of root
ecEOFinXMLdec24End of file reached during xml declaration
ecEOFinDOCTYPE25End of file reached during DOCTYPE
ecwpDocType26DOCTYPE must occur before the root element
ecEOFinTagName27End of file reached during a tag name I.E. between '<' and the attributes or ">"
ecEOFinTag28End of file reached during a tag I.E. between '<xxx' and ">" could be end tag
ecEOFinElement29End of file reached during an element I.E. there was no </xxx> matching the <xxx> in the file.

More details are coming in later versions of the documentation that include which errors set which error flags and what it puts in them, although it is fairly obvious in most cases.