Re: [SR-Users] presence_xml and xpath

2010-12-06 Thread Andreas Granig
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",

Re: [SR-Users] presence_xml and xpath

2010-12-06 Thread Daniel-Constantin Mierla
Hello, On 12/6/10 6:09 PM, Andreas Granig wrote: Hi Daniel, How is this actually supposed to work? What I'd like to do in the end is extracting for example the "none" from the "basic"-tag by specifying "xpath:/presence/tuple/status/basic", which also returns an empty string now, also when appe

Re: [SR-Users] presence_xml and xpath

2010-12-06 Thread Andreas Granig
Hi Daniel, >> How is this actually supposed to work? What I'd like to do in the end is >> extracting for example the "none" from the "basic"-tag by specifying >> "xpath:/presence/tuple/status/basic", which also returns an empty string >> now, also when appended with "/text()". > the problem is in

Re: [SR-Users] presence_xml and xpath

2010-12-06 Thread Daniel-Constantin Mierla
Hello, On 12/6/10 3:13 PM, Andreas Granig wrote: Hi, I'm having troubles fetching an xpath from an xml document using presence_xml, so I probably do something wrong (using kamailio 3.0.x): $xml(x=>doc) = 'none'; xlog("L_INFO", "all=$xml(x=>doc)\n"); -> prints the whole document, which is

[SR-Users] presence_xml and xpath

2010-12-06 Thread Andreas Granig
Hi, I'm having troubles fetching an xpath from an xml document using presence_xml, so I probably do something wrong (using kamailio 3.0.x): $xml(x=>doc) = 'none'; xlog("L_INFO", "all=$xml(x=>doc)\n"); -> prints the whole document, which is ok xlog("L_INFO", "tmp1=$xml(x=>xpath:/)\n"); -> a