Class XmlStreamExtractor¶
Stream XML tags extractor. Do not need to parse all a XML document if you only need tags from beginning of it.
-
class
httpstreamxml.xml_stream.
XmlStreamExtractor
(tags_to_collect)¶ Extract given tags from XML streamed to it by chunks (in method feed). Raise StopIteration when all tag are found.
Found tags would be available in dict tags
-
feed
(chunk)¶ Feed next part of XML into the parser.
Parameters: chunk – XML document part Returns: None
-