<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This kind usage of xmlns in an xml doc is a hack done by SIMPLE WG
    breaking XML standard, because any ns has to use a prefix for each
    corresponding name. If you search on google, you will fine some
    discussions on the web (iirc, Inaki was there as well) - libxml2
    devs said they don't want to break the xml standard to handle this
    case, probably they didn't change the mind meanwhile. <br>
    <br>
    Anyhow, set a prefix for the namespace via xml_ns parameter and then
    use it in xpath<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    modparam("xmlops", "xml_ns",
    "di=urn:ietf:params:xml:ns:dialog-info")<br>
    <br>
    $xml(u=>xpath:/di:dialog-info/di:dialog[1]/di:state/text())<br>
    <br>
    Hope i remembered correctly, anyhow it is somewhere in this
    direction. If not, search on mailing list archive, the situation
    popped up few times around.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 03/05/14 09:49, Alex Balashov wrote:<br>
    </div>
    <blockquote cite="mid:53649FA2.5000906@evaristesys.com" type="cite">It's
      definitely namespace-related, because when I manually hack out the
      namespace, it works fine!
      <br>
      <br>
         $var(x) = $rb;
      <br>
         $var(x) = $(var(x){re.subst,/xmlns=\".+\"//});
      <br>
      <br>
         $xml(u=>doc) = $var(x);
      <br>
      <br>
         xlog("L_INFO", "State:
      $xml(u=>xpath:/dialog-info/dialog[1]/state/text())\n");
      <br>
      <br>
      But I can't for the life of me figure out how to construct an
      XPath expression that properly captures the
      urn:ietf:params:xml:ns:dialog-info namespace.
      <br>
      <br>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>