Module beepy.profiles.mgmtparser
The BEEP Management Profile XML Parser.
I'm being sneaky here so that I can use just what's available within
the Python Standard Library. I want to use DOM, so I'm using minidom, but
minidom doesn't support parsing of CDATA sections. Dumb, but that's the
way it is. minidom _does_ support the creation of them and subsequent
output, so we cheat, using pyExpat to parse things in, but create a
minidom DOM document anyway, sidestepping the limitations of minidom.
If minidom ever gets fixed up to support CDATA, we can do away with
this smoke and mirrors technique.
Classes |
Parser |
A Parser object takes in string encodings of XML documents that
represent a BEEP Management message |
Exceptions |
ParserException |
Exception raised if there are any errors during parsing of XML
data. |