Skip to main content

XML errors

CodeWhat it means
XML.BAD_DTDCannot check against the DTD: …
XML.BAD_NAMEInvalid attribute name: …
XML.BAD_NAMESPACEInvalid namespace prefix '…'
XML.BAD_OPTIONUnknown return_value '…'
XML.BAD_POSITIONCannot insert next to the root element
XML.BAD_RESULT_TYPEUnknown result type '…'
XML.BAD_SCHEMACannot use schema …: …
XML.BAD_XPATHInvalid XPath '…': …
XML.EXTERNAL_ENTITY_NOT_ALLOWEDThe XML declares an entity that reads a file or URL (SYSTEM/PUBLIC), which is refused for security
XML.INVALIDInvalid XML: …
XML.NOT_A_NUMBERThe expression '…' did not produce a number
XML.NO_DTDThe document has no DOCTYPE, so there is no DTD to check against
XML.NO_REFERENCEThe node … has no child element '…'
XML.NO_SOURCEGive either XML text or a file path
XML.NO_VALUEGive the new value
XML.TOO_MANY_ENTITIESThe XML expands entities beyond the safe limit (an entity-expansion attack or a very unusual document)
XML.UNKNOWN_PREFIXXPath prefix '…:' is not declared in the document or in namespaces
XML.WRITE_FAILED