pugixml.pugi.XMLParseStatus

class pugixml.pugi.XMLParseStatus

Bases: pybind11_object

Parsing status, returned as part of XMLParseResult object.

Members:

STATUS_OK : No error.

STATUS_FILE_NOT_FOUND : File was not found during XMLDocument.load_file().

STATUS_IO_ERROR : Error reading from file/stream.

STATUS_OUT_OF_MEMORY : Could not allocate memory.

STATUS_INTERNAL_ERROR : Internal error occurred.

STATUS_UNRECOGNIZED_TAG : Parser could not determine tag type.

STATUS_BAD_PI : Parsing error occurred while parsing document declaration/processing instruction.

STATUS_BAD_COMMENT : Parsing error occurred while parsing comment.

STATUS_BAD_CDATA : Parsing error occurred while parsing CDATA section.

STATUS_BAD_DOCTYPE : Parsing error occurred while parsing document type declaration.

STATUS_BAD_PCDATA : Parsing error occurred while parsing PCDATA section.

STATUS_BAD_START_ELEMENT : Parsing error occurred while parsing start element tag.

STATUS_BAD_ATTRIBUTE : Parsing error occurred while parsing element attribute.

STATUS_BAD_END_ELEMENT : Parsing error occurred while parsing end element tag.

STATUS_END_ELEMENT_MISMATCH : There was a mismatch of start-end tags (closing tag had incorrect name, some tag was not closed or there was an excessive closing tag).

STATUS_APPEND_INVALID_ROOT : Unable to append nodes since root type is not NODE_ELEMENT or NODE_DOCUMENT (exclusive to XMLNode.append_buffer()).

STATUS_NO_DOCUMENT_ELEMENT : Parsing resulted in a document without element nodes.

pugi.STATUS_APPEND_INVALID_ROOT = <XMLParseStatus.STATUS_APPEND_INVALID_ROOT: 15>
pugi.STATUS_BAD_ATTRIBUTE = <XMLParseStatus.STATUS_BAD_ATTRIBUTE: 12>
pugi.STATUS_BAD_CDATA = <XMLParseStatus.STATUS_BAD_CDATA: 8>
pugi.STATUS_BAD_COMMENT = <XMLParseStatus.STATUS_BAD_COMMENT: 7>
pugi.STATUS_BAD_DOCTYPE = <XMLParseStatus.STATUS_BAD_DOCTYPE: 9>
pugi.STATUS_BAD_END_ELEMENT = <XMLParseStatus.STATUS_BAD_END_ELEMENT: 13>
pugi.STATUS_BAD_PCDATA = <XMLParseStatus.STATUS_BAD_PCDATA: 10>
pugi.STATUS_BAD_PI = <XMLParseStatus.STATUS_BAD_PI: 6>
pugi.STATUS_BAD_START_ELEMENT = <XMLParseStatus.STATUS_BAD_START_ELEMENT: 11>
pugi.STATUS_END_ELEMENT_MISMATCH = <XMLParseStatus.STATUS_END_ELEMENT_MISMATCH: 14>
pugi.STATUS_FILE_NOT_FOUND = <XMLParseStatus.STATUS_FILE_NOT_FOUND: 1>
pugi.STATUS_INTERNAL_ERROR = <XMLParseStatus.STATUS_INTERNAL_ERROR: 4>
pugi.STATUS_IO_ERROR = <XMLParseStatus.STATUS_IO_ERROR: 2>
pugi.STATUS_NO_DOCUMENT_ELEMENT = <XMLParseStatus.STATUS_NO_DOCUMENT_ELEMENT: 16>
pugi.STATUS_OK = <XMLParseStatus.STATUS_OK: 0>
pugi.STATUS_OUT_OF_MEMORY = <XMLParseStatus.STATUS_OUT_OF_MEMORY: 3>
pugi.STATUS_UNRECOGNIZED_TAG = <XMLParseStatus.STATUS_UNRECOGNIZED_TAG: 5>