pugixml.pugi.XMLParseResult

class pugixml.pugi.XMLParseResult

Bases: pybind11_object

Parsing result.

Properties

encoding

The source document encoding.

Type:

XMLEncoding

offset

The last parsed offset.

Type:

int

status

The parsing status.

Type:

XMLParseStatus

Methods

__bool__(self)

Determine if the parsing result is not an error (status == STATUS_OK).

__init__(self)

Initialize XMLParseResult.

description(self)

Return an error description.

Member Documentation

__bool__(self: pugixml.pugi.XMLParseResult) bool

Determine if the parsing result is not an error (status == STATUS_OK).

Returns:

True if the parsing result is not an error, False otherwise.

__init__(self: pugixml.pugi.XMLParseResult) None

Initialize XMLParseResult.

description(self: pugixml.pugi.XMLParseResult) str

Return an error description.

Returns:

An error description.