- doc.find('//osm/changeset').each do |pt|
- return Changeset.from_xml_node(pt, create)
- end
- raise OSM::APIBadXMLError.new("changeset", xml, "XML doesn't contain an osm/changeset element.")
- rescue LibXML::XML::Error, ArgumentError => ex
- raise OSM::APIBadXMLError.new("changeset", xml, ex.message)
+ doc.find("//osm/changeset").each do |pt|
+ return Changeset.from_xml_node(pt, create)