[SR-Users] presence_xml and xpath

Andreas Granig agranig at sipwise.com
Mon Dec 6 19:41:49 CET 2010


On 12/06/2010 07:17 PM, Daniel-Constantin Mierla wrote:
> you can define many xml_ns parameters, each with different prefix. I
> guess the inner xmlns overwrites the other one in your sample xml
> document, so you have to use different prefix for that nodes:
> 
> modparam("presence_xml", "xml_ns", "pidf=urn:ietf:params:xml:ns:pidf")
> modparam("presence_xml", "xml_ns",
> "geop=urn:ietf:params:xml:ns:pidf:geopriv10")
> 
> Try a path like:
> /pidf:presence/pidf:tuple/pidf:status/geop:geopriv/...

Works like charm, thanks a lot :)

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101206/8c447e8b/attachment.pgp>


More information about the sr-users mailing list