toanhoi bui

toanhoi bui

  • NA
  • 70
  • 205.5k

Search in XML

Sep 29 2010 10:41 AM

Hi,everybody.I have a xml file and I want to find coordinates of a place
<?xml version="1.0" encoding="UTF-8" ?>
<osm>
<node id="1" lat=21.007 lon="105">
<tag k="amenity" v="fuel" />
<tag k="name" v="Station" />
</node>
<node id="3" lat=21.007 lon="105.854">
<tag k="amenity" v="fuel" />
<tag k="name" v="School" />
</node>
<node id="2" lat=21.007 lon="105.9988">
<tag k="amenity" v="fuel" />
<tag k="name" v="Stop-bus" />
</node>
</osm>

Example I enter a string "Stop-bus".After,I use a function and I will find coordianates lat=21.007 lon="105.9988".Can you  write a function or class to find ?Can you help me,please?

Answers (5)