libxml-DomException

libxml-DomException — The XML Document Object Model.

Functions

void gxml_warning ()
void gxml_exception ()

Types and Values

enum GXmlDomException
extern GXmlDomException gxml_last_error

Description

GXml provides a DOM Level 1 Core API in a GObject framework.

Functions

gxml_warning ()

void
gxml_warning (GXmlDomException ex,
              const gchar *message);

gxml_warning is deprecated and should not be used in newly-written code.

Log DOM exception warnings.

Parameters

exception

rised

 

self

the (null) instance

 

message

 .

message to log

.

[in]

ex

 

 

gxml_exception ()

void
gxml_exception (GXmlDomException ex,
                const gchar *message);

gxml_exception is deprecated and should not be used in newly-written code.

Log DOM exception warnings.

Parameters

exception

rised

 

self

the (null) instance

 

message

 .

message to log

.

[in]

ex

 

 

Types and Values

enum GXmlDomException

Describes various error states. For more, see

Version: DOM Level 1 Core URL: http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-BBACDC08

Members

GXML_DOM_EXCEPTION_NONE

Indicates that there has not been a recent error

 

GXML_DOM_EXCEPTION_INDEX_SIZE

An index or size is out of range, like less than 0 or exceeding some upper bound.

 

GXML_DOM_EXCEPTION_DOMSTRING_SIZE

Text exceeds the maximum size supported in our string implementation.

 

GXML_DOM_EXCEPTION_HIERARCHY_REQUEST

A node asked to be inserted into an invalid location.

 

GXML_DOM_EXCEPTION_WRONG_DOCUMENT

A node created for one document wanted to be used in another.

 

GXML_DOM_EXCEPTION_INVALID_CHARACTER

An invalid character was found in a name.

 

GXML_DOM_EXCEPTION_NO_DATA_ALLOWED

Tried to specify data for a node that did not support it.

 

GXML_DOM_EXCEPTION_NO_MODIFICATION_ALLOWED

Attempted to modify a read-only node.

 

GXML_DOM_EXCEPTION_NOT_FOUND

A reference to a non-existent node was made.

 

GXML_DOM_EXCEPTION_NOT_SUPPORTED

A request was made for something that this implementation does not support.

 

GXML_DOM_EXCEPTION_INUSE_ATTRIBUTE

An element tried to make use of an attribute already attached to another element.

 

GXML_DOM_EXCEPTION_DOM

Generic error in creating the DOM.

 

GXML_DOM_EXCEPTION_INVALID_DOC

A document could not be parsed due to invalid XML.

 

GXML_DOM_EXCEPTION_INVALID_ROOT

A document lacked a root element.

 

GXML_DOM_EXCEPTION_NAMESPACE

There was an issue with the namespace. A qualified name's prefix may have disagreed with the corresponding namespace or vice versa.

Version: DOM Level 3 Core URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMException-NAMESPACE_ERR

 

GXML_DOM_EXCEPTION_X_OTHER

Non-DOM error

 

gxml_last_error

extern GXmlDomException gxml_last_error;

Last error exception for DOM.