Package bitten :: Package util :: Module xmlio

Module xmlio

Utility code for easy input and output of XML.

The current implementation uses xml.dom.minidom under the hood for parsing.

Classes
  Fragment
A collection of XML elements.
  Element
Simple XML output generator based on the builder pattern.
  ParsedElement
Representation of an XML element that was parsed from a string or file.
Functions
 
parse(text_or_file)
Parse an XML document provided as string or file-like object.
Function Details

parse(text_or_file)

 

Parse an XML document provided as string or file-like object.

Returns an instance of ParsedElement that can be used to traverse the parsed document.