<s> import gpx as mod_gpx <EOL> import parser as mod_parser <EOL> def parse ( xml_or_file ) : <EOL> """<STR_LIT>""" <EOL> parser = mod_parser . GPXParser ( xml_or_file ) <EOL> gpx = parser . parse ( ) <EOL> if not parser . is_valid ( ) : <EOL> raise mod_gpx . GPXException ( '<STR_LIT>' . format ( xml_or_file [ <NUM_LIT:0> : <NUM_LIT:100> ] , parser . get_error ( ) ) ) <EOL> return gpx </s>
