/** * @param SimpleXMLElement $xml * @return GPX * @throws InvalidGPXException */ public function parseXML(SimpleXMLElement $xml) { $gpx = GPX::fromXML($xml); return $gpx; }