<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr" data-setdir="false">good evening everyone,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">can you please help how to parse following XML body and get the "<span><gml:pos>31.204359 -44.512358</gml:pos></span>" in a variable? <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><?xml version="1.0"?><br><presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10" xmlns:gml="http://www.opengis.net/gml" xmlns:gs="http://www.opengis.net/pidflo/1.0" xmlns:con="urn:ietf:params:xml:ns:geopriv:conf" entity="sip:+6478897789@ims.mnc0xx.mccxxx.3gppnetwork.org"><br><dm:device id="Wifi"><br><gp:geopriv><br><gp:location-info><br><gs:Circle srsName="urn:ogc:def:crs:EPSG::5524"><br><gml:pos>31.204359 -44.512358</gml:pos><br><gs:radius uom="urn:ogc:def:uom:EPSG::8190">10.578000</gs:radius><br></gs:Circle><br><con:confidence pdf="normal">92</con:confidence><br></gp:location-info><br><gp:method>DBH_HELO</gp:method><br><gp:usage-rules/><br></gp:geopriv><br><dm:timestamp>2022-04-05T19:16:34Z</dm:timestamp><br></dm:device><br><div></presence></div><div><br></div><div dir="ltr" data-setdir="false">i tried few variants:<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>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")<br>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");<br>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");<br>xinfo("GML_LOC: $xml(x=>xpath:/pidf:presence/dm:device/gp:geopriv/gp:location-info/gs:Circle/gml:pos)\n");</div><div><br></div><div dir="ltr" data-setdir="false"><span>and end up with error "unable to evaluate xpath expression":</span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span>ERROR: xmlops [pv_xml.c:308]: pv_get_xml(): unable to evaluate xpath expression [/pidf:presence/dm:device/gp:geopriv/gp:location-info/gs:Circle/gml:pos/70]</span><br></div></div></div><div><br></div><div>thanks in advance,</div><div dir="ltr" data-setdir="false">Art<br></div></div></div></body></html>