Aravis.DomDocument¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Aravis.DomDocument(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod new_from_memory(buffer, size)¶
- Parameters:
- Raises:
- Return type:
- append_from_memory(node, buffer, size)¶
- Parameters:
node (
Aravis.DomNode
) – aAravis.DomNode
size (
int
) – size of the xml data, in bytes
- Raises:
Append a chunk of xml tree to an existing document. The resulting nodes will be appended to node, or to self if node ==
None
.Size set to a negative value indicated an unknow xml data size.
- create_element(tag_name)¶
- Parameters:
tag_name (
str
) – node name of the element to create- Returns:
a new orphan
Aravis.DomElement
,None
on error.- Return type:
Create a new element.
- create_text_node(data)¶
- Parameters:
data (
str
) – initial content- Returns:
a new orphan
Aravis.DomText
,None
on error.- Return type:
Create a new text element.
- get_document_element()¶
- Returns:
the top element of self.
- Return type:
- get_href_data(href, size)¶
- Parameters:
- Returns:
a newly allocated data buffer.
- Return type:
Load the content referenced by href.
- do_create_element(tag_name) virtual¶
- Parameters:
tag_name (
str
) – node name of the element to create- Returns:
a new orphan
Aravis.DomElement
,None
on error.- Return type:
Create a new element.
- do_create_text_node(data) virtual¶
- Parameters:
data (
str
) – initial content- Returns:
a new orphan
Aravis.DomText
,None
on error.- Return type:
Create a new text element.
- do_get_document_element() virtual¶
- Returns:
the top element of self.
- Return type: