Nyx Node
Loading...
Searching...
No Matches
nyx.xml.NyxXMLDoc Class Reference

XML document. More...

Public Member Functions

 __init__ (self, int ptr)
 Wraps a C XML document pointer.
str to_string (self)
 Returns a string representing this XML document.
NyxObject to_json (self)
 Converts this XML Nyx / INDI command to the JSON one.

Static Public Member Functions

NyxXMLDoc from_string (str string)
 Parses an XML document from a string.

Detailed Description

XML document.

Definition at line 25 of file xml.py.

Constructor & Destructor Documentation

◆ __init__()

nyx.xml.NyxXMLDoc.__init__ ( self,
int ptr )

Wraps a C XML document pointer.

Parameters
ptrXML document pointer.

Definition at line 32 of file xml.py.

Member Function Documentation

◆ from_string()

NyxXMLDoc nyx.xml.NyxXMLDoc.from_string ( str string)
static

Parses an XML document from a string.

Parameters
stringXML string.
Returns
The new XML document.

Definition at line 68 of file xml.py.

◆ to_string()

str nyx.xml.NyxXMLDoc.to_string ( self)

Returns a string representing this XML document.

Returns
A string that represents this XML document.

Definition at line 82 of file xml.py.

◆ to_json()

NyxObject nyx.xml.NyxXMLDoc.to_json ( self)

Converts this XML Nyx / INDI command to the JSON one.

Returns
The corresponding JSON Nyx / INDI command.

Definition at line 93 of file xml.py.


The documentation for this class was generated from the following file: