Home | Trees | Indices | Help |
|
---|
|
object --+ | XMLParser
Generator-based XML parser based on roughly equivalent code in Kid/ElementTree.
The parsing is initiated by iterating over the parser object:
>>> parser = XMLParser(StringIO('<root id="2"><child>Foo</child></root>')) >>> for kind, data, pos in parser: ... print('%s %s' % (kind, data)) START (QName('root'), Attrs([(QName('id'), u'2')])) START (QName('child'), Attrs()) TEXT Foo END child END root
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
name =
|
|
value = 963
|
Properties | |
Inherited from |
Method Details |
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 22 14:10:36 2010 | http://epydoc.sourceforge.net |