get_xml_iterator#
- astropy.utils.xml.iterparser.get_xml_iterator(source, _debug_python_based_parser=False)[source]#
Returns an iterator over the elements of an XML file.
The iterator doesn’t ever build a tree, so it is much more memory and time efficient than the alternative in
cElementTree
.- Parameters:
- sourcepath-like object, readable file-like object file-like object, or
callable()
Handle that contains the data or function that reads it. If a function or callable object, it must directly read from a stream. Non-callable objects must define a
read
method.
- sourcepath-like object, readable file-like object file-like object, or
- Returns: