def xml_readlines(source):
 encoding = get_xml_encoding(source)
 with data.get_readable_fileobj(source, encoding=encoding) as input:
  input.seek(0)
  xml_lines = input.readlines()
 return xml_lines

def xml_readlines ( source ) : encoding = get_xml_encoding ( source ) with data . get_readable_fileobj ( source , encoding = encoding ) as input : input . seek ( 0 ) xml_lines = input . readlines ( ) return xml_lines
get the lines from a given xml file .