xml_readlines

astropy.utils.xml.iterparser.xml_readlines(source)[source]

Get the lines from a given XML file. Correctly determines the encoding and always returns unicode.

Parameters
sourcereadable file-like object, read function or str path
Returns
lineslist of unicode