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. |
|||
SAXInformationItem Class used to capture an item discovered in the body of an element. |
|||
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 don't care about. |
|||
Handler A SAX handler class that maintains a stack of enclosing elements and manages namespace declarations. |
|
|||
|
|||
|
|
|||
_log = logging.getLogger(__name__)
|
|||
_CreateParserModules =
|
|||
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__ =
|
|
Provide list of modules to be used when creating parsers.
As an example, providing The default behavior if this function is not called, or if it is
called with an empty list or
|
Extend
All keywords not documented here (and
|
|
sdomer
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Dec 17 13:09:07 2012 | http://epydoc.sourceforge.net |