plainbox.impl.exporter.xml

XML exporter for certification website

Warning

THIS MODULE DOES NOT HAVE A STABLE PUBLIC API

class plainbox.impl.exporter.xml.XMLSessionStateExporter(option_list=None, system_id=None, timestamp=None, client_version=None, client_name='plainbox')[source]

Session state exporter creating XML documents

The following resource jobs are needed to validate sections of this report:
  • package (Optional)
  • uname (Optional)
  • lsb (Mandatory)
  • cpuinfo (Mandatory)
  • dpkg (Mandatory)
The Hardware sections includes the content of the following attachments:
  • dmi_attachment
  • sysfs_attachment
  • udev_attachment
SUPPORTED_OPTION_LIST = ()
dump(data, stream)[source]

Public method to dump the XML report to a stream

get_root_element(data)[source]

Get the XML element of the document exported from the given data

class plainbox.impl.exporter.xml.XMLValidator[source]

A validator for documents produced by XMLSessionStateExporter

validate_element(element)[source]

Validate the given element

Parameters:element – lxml.etree.ElementTree.Element to validate
Returns:True, if the document is valid
validate_text(text)[source]

Validate the given text

Parameters:text – text to validate

Previous topic

plainbox.impl.exporter.text – plain text exporter

Next topic

plainbox.impl.highlevel – High-level API

This Page