pugixml.pugi.XPathParseResult

class pugixml.pugi.XPathParseResult

Bases: pybind11_object

XPath parsing result.

Properties

error

An error message. (None if no error)

Type:

str | None

offset

The last parsed offset.

Type:

int

Methods

__bool__(self)

Determine if the parsing result is not an error (error is None).

__init__(self)

Initialize XPathParseResult.

description(self)

Return an error description.

Member Documentation

__bool__(self: pugixml.pugi.XPathParseResult) bool

Determine if the parsing result is not an error (error is None).

Returns:

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

__init__(self: pugixml.pugi.XPathParseResult) None

Initialize XPathParseResult.

description(self: pugixml.pugi.XPathParseResult) str

Return an error description.

Returns:

An error description.