Home | Trees | Indices | Help |
|
---|
|
This module contains support for processing XML using a SAX parser.
In particular, it provides a base content handler class that maintains namespace context and element state in a stack; and a base element state class which records the location of the element in the stream. These classes are extended for specific parsing needs (e.g., pyxb.binding.saxer).
|
|||
TracingSAXHandler A SAX handler class which prints each method invocation. |
|||
_NoopSAXHandler A SAX handler class which doesn't do anything. |
|||
SAXElementState State corresponding to processing a given element with the SAX model. |
|||
BaseSAXHandler A SAX handler class that maintains a stack of enclosing elements and manages namespace declarations. |
|||
_EntityResolver Dummy used to prevent the SAX parser from crashing when it sees processing instructions that we dont' care about. |
|||
Handler A SAX handler class that maintains a stack of enclosing elements and manages namespace declarations. |
|
|||
|
|
|||
xml_file = sys.argv [1]
|
|||
xmls = open(xml_file).read()
|
|||
dt1 = time.time()
|
|||
dt2 = time.time()
|
|||
dom = xml.dom.minidom.parseString(xmls)
|
|||
dt3 = time.time()
|
|||
snt1 = time.time()
|
|||
snt2 = time.time()
|
|||
snt3 = time.time()
|
|||
sbt1 = time.time()
|
|||
saxer = make_parser(content_handler= BaseSAXHandler())
|
|||
sbt2 = time.time()
|
|||
sbt3 = time.time()
|
|||
pdt1 = time.time()
|
|||
sdomer = make_parser(content_handler_constructor= saxdom._DOMS
|
|||
h = sdomer.getContentHandler()
|
|||
pdt2 = time.time()
|
|||
pdt3 = time.time()
|
|||
lst1 = time.time()
|
|||
lst2 = time.time()
|
|||
lsh = Handler()
|
|||
lst3 = time.time()
|
|||
ldt1 = time.time()
|
|||
tree = lxml.etree.fromstring(xmls)
|
|||
ldt2 = time.time()
|
|||
ldh = xml.dom.pulldom.SAX2DOM()
|
|||
ldt3 = time.time()
|
|||
__package__ =
|
|
Extend
All arguments not documented here are passed to
All keywords not documented here (and
|
|
sdomer
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 9 14:08:49 2011 | http://epydoc.sourceforge.net |