ovirtsdk4.xml

#   class XmlReader:

This is an utility class used to read XML documents using an streaming approach. It is intended for use by other components of the SDK. Refrain from using it directly, as backwards compatibility isn't guaranteed.

#   XmlReader(*args, **kwargs)
#   def read(unknown):

Reads the next XML event from the input.

#   def forward(unknown):

Jumps to the next start tag, end tag or end of document. Returns True if stopped at an start tag, False otherwise.

#   def node_name(unknown):

Returns the name of the current element.

#   def empty_element(unknown):

Returns a boolean value indicating if the current element is empty.

#   def get_attribute(unknown):

Gets the value of the given attribute.

#   def read_element(unknown):

Reads a string value, assuming that the cursor is positioned at the start element that contains the value.

#   def read_elements(unknown):

Reads a list of string values, assuming that the cursor is positioned at the start element of the element that contains the first value.

#   def next_element(unknown):

Jumps to the beginning of the next element.

#   def close(unknown):

Closes this XML reader and releases all the related resources.

#   class XmlWriter:

This is an utility class used to generate XML documents using an streaming approach. It is intended for use by other components of the SDK. Refrain from using it directly, as backwards compatibility isn't guaranteed.

#   XmlWriter(*args, **kwargs)
#   def write_start(unknown):

Writes the start of an element with the given name.

#   def write_end(unknown):

Writes the end of the current element.

#   def write_attribute(unknown):

Writes an attribute with the given name and value.

#   def write_element(unknown):

Writes an element with the given name and value.

#   def flush(unknown):

Flushes this writer, sending all the pending output th the underlying IO object.

#   def string(unknown):

Return the XML document text generated by this writer so far.

#   def close(unknown):

Closes this writer, releasing all the resources it uses. Note that this doesn't close the IO object.