GUPnP.XMLDoc

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object GUPnP.XMLDoc GUPnP.XMLDoc GObject.Object->GUPnP.XMLDoc Gio.Initable->GUPnP.XMLDoc

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (xml_doc)

class

new_from_path (path)

get_doc ()

Virtual Methods

Inherited:

GObject.Object (7), Gio.Initable (1)

Properties

Name

Type

Flags

Short Description

doc

int

w/co

doc

path

str

w/co

path

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GUPnP.XMLDoc(**kwargs)
Bases:

GObject.Object, Gio.Initable

Abstract:

No

Structure:

GUPnP.XMLDocClass

Reference-counting wrapper for libxml’s libxml2.Doc

New in version 0.14.0.

classmethod new(xml_doc)
Parameters:

xml_doc (libxml2.Doc) – Pointer to libxml2.Doc to wrap under this object

Returns:

A new GUPnP.XMLDoc, or None on an error

Return type:

GUPnP.XMLDoc

Create a new GUPnP.XMLDoc for xml_doc.

New in version 0.14.0.

classmethod new_from_path(path)
Parameters:

path (str) – Path to xml document

Raises:

GLib.Error

Returns:

A new GUPnP.XMLDoc, or None on an error

Return type:

GUPnP.XMLDoc or None

Create a new GUPnP.XMLDoc for the XML document at path.

New in version 0.14.0.

get_doc()
Returns:

a pointer to the wrapped libxml2.Doc

Return type:

libxml2.Doc

Property Details

GUPnP.XMLDoc.props.doc
Name:

doc

Type:

int

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

doc

GUPnP.XMLDoc.props.path
Name:

path

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

path