Hi! I have a site configured and could really use some help with XPATH queries to select nodes for import into my site.
I've worked for almost a year now and put over a million changes into OSM.org and it would be super-dee-duper if you could please help me to figure out how to access that data :) I've got a really simple POI file and a pretty simple interface for the Xpath configuration. Does anyone have a few minutes to help out, or some previous experience? >From this file : <?xml version='1.0' encoding='UTF-8'?> <osm> <node id='-832' action='modify' visible='true' lat='-6.587172610170637' lon='106.79715307393867'> <tag k='leisure' v='park' /> <tag k='name' v='Park' /> </node> <node id='-830' action='modify' visible='true' lat='-6.656610878203467' lon='106.84743506028379'> <tag k='name' v='Pasar Ciawi' /> <tag k='shop' v='mall' /> </node> <node id='-828' action='modify' visible='true' lat='-6.649718578831805' lon='106.84447562987759'> <tag k='amenity' v='bar' /> <tag k='name' v='Soponyono Cafe' /> </node> <node id='-826' action='modify' visible='true' lat='-6.619922450944434' lon='106.81638669365105'> <tag k='name' v='Buah Segar' /> <tag k='petarakyat' v='include' /> <tag k='shop' v='supermarket' /> </node> </osm> I am trying to place: (example below in format source-xml ->new field) lat -> lat v='name' -> title I want to pull out more information but if you could help with just these I think I can figure out the rest, yes? I have spent the day on this and I can't seem to find any hints. I even did the W3C schools Xpath tutorial, but, I can seem to select the name, or anything, for that matter. Any help appreciated. You don't have to be familiar with Drupal to help. If anyone has other ideas for simply converting this to a CSV file that would be nice also, but, at some point, I know I will have to get a whole lot more technical. A little help now would be greatly appreciated, though! Alex Bogor, Indonesia
_______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev