I am trying different variants, but no luck:
xinfo("status:
$xml(x=>xpath:/pidf:presence/pidf:dm:device/pidf:gp:geopriv/pidf:gp:location-info/pidf:gs:Circle/pidf:gml:pos)\n");
xinfo("GML_LOC:
$xml(x=>xpath:/pidf:presence/pidf:dm\:device/pidf:gp\:geopriv/pidf:gp\:location-info/pidf:gs\:Circle/pidf:gml\:pos)\n");
xinfo("GML_LOC:
$xml(x=>xpath:/pidf:presence/dm:device/gp:geopriv/gp:location-info/gs:Circle/gml:pos)\n");
On Wednesday, April 6, 2022, 09:45:24 AM EDT, Artur Hovsepyan <hvspa(a)yahoo.com>
wrote:
hi Daniel,i have also tried to access like this, but still no luck:
xinfo("status:
$xml(x=>xpath:/pidf:presence/pidf:dm:device/pidf:gp:geopriv/pidf:gp:location-info/pidf:Circle/pidf:gml:pos)\n");
so i am not sure how do i access the gml_loc correctly. will appreciate if you give me an
example of similar XML so i can use to get what i want to get.
thanks
On Wednesday, April 6, 2022, 04:40:56 AM EDT, Daniel-Constantin Mierla
<miconda(a)gmail.com> wrote:
It doesn't seem that element gml:pos is the root node, so the path to it has to
contain the parent tags. See the xpath specs to understand betther how it has to be
constructed.
Cheers,
Daniel