Permit string or DOM input for gpx and kml parsers