[SR-Users] xmlops & XPath question
abalashov at evaristesys.com
Sat May 3 09:10:04 CEST 2014
I don't know a lot about XML or XPath, so I was hoping someone could
help me out.
I'm trying to parse out 'Event: dialog' state notifications from NOTIFYs
using xmlops. They look like this:
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="5"
state="full" entity="sip:abalashov-roaming at xxx.xxx.xxx.xxx">
<dialog id="0588e460-d293-11e3-8563-538b9e69fee5" direction="initiator">
So, I do:
$xml(u=>doc) = $rb;
This produces a blank result. I've tried numerous other variations, such as:
None of them work, either. When I upload the above XML body to various
online XPath validation tools and try my expressions, they work fine.
Any ideas as to what I'm missing? Do I need to indicate the namespace in
the XPath expression somehow? If so, how do I do it?
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Decatur, GA 30030
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
More information about the sr-users