Module cim_xml
source code
Functions to create XML documens and elements conforming to the DMTF
standard DSP0201, Representation of CIM in XML, v2.2.
http://www.dmtf.org/standards/wbem/DSP201.html
http://www.dmtf.org/standards/published_documents/DSP201.pdf
Elements generated by this module should conform to version 2.2 of the
DTD:
http://www.dmtf.org/standards/wbem/CIM_DTD_V22.dtd
There should be one class for each element described in the DTD. The
constructors take builtin Python types, or other cim_xml classes where
child elements are required.
Every class is a subclass of the Element class and so shares the same
attributes and methods, and can be used with the built-in Python XML
handling routines. In particular you can call the toxml() and
toprettyxml() methods to generate XML.
Note that converting using toprettyxml() inserts whitespace which may
corrupt the data in the XML (!!) so you should only do this when
displaying to humans who can ignore it, and never for computers. XML
always passes through all non-markup whitespace.