/** * @param SimpleXMLElement $xmlObj * @return OSM_Objects_Tag */ public static function fromXmlObj(SimpleXMLElement $xmlObj) { $tag = new OSM_Objects_Tag((string) $xmlObj['k'], (string) $xmlObj['v']); $tag->setDirty(false); return $tag; }