<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">if you have $xml(bla) = "....some xml....";<br>
      <br>
      Try like </font><span style="color:#000000;"><span
        style="font-family:monospace;"><span
          style="background-color:#ffffff;">$</span><span
          style="background-color:#ffff54;">xml</span><span
          style="background-color:#ffffff;">(bla</span><span
          style="background-color:#ffffff;">/isComposing.attr/xmlns)<br>
          <br>
          Regards,</span></span></span>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <br>
    <div class="moz-cite-prefix">On 5/6/26 22:19, Robert Dyck wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:lcZSz6RoSf-gYrC2PCHkSw@telus.net">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I am
        trying to understand $xml() and added some logging to the
        script.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I
        know the contents of the xml doc.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><?xml
        version="1.0" encoding="UTF-8" standalone="no" ?></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><isComposing
        xmlns=<a class="moz-txt-link-rfc2396E" href="urn:ietf:params:xml:ns:im-iscomposing">"urn:ietf:params:xml:ns:im-iscomposing"</a>></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">       
        <state>active</state></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">       
        <contenttype>text/plain</contenttype></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">       
        <refresh>60</refresh></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> </isComposing>'</p>
      <br>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Using
        statements such as "<span style="color:#000000;"><span
            style="font-family:monospace;"><span
              style="background-color:#ffffff;">xlog("xlm is $</span><span
              style="background-color:#ffff54;">xml</span><span
              style="background-color:#ffffff;">(?</span><span
              style="background-color:#ffff54;">xml</span><span
              style="background-color:#ffffff;">/isComposing)\n")</span></span></span><span
          style="color:#1818b2;"><span style="background-color:#ffffff;">;"</span></span></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span
          style="background-color:#ffffff;"><span style="color:#1818b2;">I
            get </span><span style="color:#8a8a8a;"><a class="moz-txt-link-freetext" href="DBG:xml:pv_get_xml">DBG:xml:pv_get_xml</a>:
            Unknown object <?xml></span></span><br>
        The same if I ignore the version element and try "isComposing".</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">It
        says Unknown object <isComposing></p>
      <br>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Printing
        the entire $xml doesn't work.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span
          style="color:#8a8a8a;"><span style="background-color:#ffffff;"><a class="moz-txt-link-freetext" href="BG:core:parse_headers_aux">BG:core:parse_headers_aux</a>:
            flags=ffffffffffffffff</span></span><br>
        <span style="color:#000000;"><span
            style="background-color:#ffffff;">[266B blob data]</span></span><br>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On
        Wednesday, May 6, 2026 1:08:11 a.m. Pacific Daylight Time you
        wrote:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        According to the grammar [1], you have access to the attributes:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        access = .val | .attr/string | .attr/$var</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        An example:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        $xml(my_doc/doc/list.attr/sort) = "asc";              # add
        attribute "sort"</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        to list node</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        [1] <a class="moz-txt-link-freetext" href="https://opensips.org/docs/modules/3.6.x/xml.html#pv_xml">https://opensips.org/docs/modules/3.6.x/xml.html#pv_xml</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        Bogdan-Andrei Iancu</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        OpenSIPS Founder and Developer</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   
        <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   
        <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        On 5/4/26 17:31, Robert Dyck wrote:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > Yes.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > Or perhaps just detect the the presence of xlm. It should
        not go into the</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > silo.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > On Monday, May 4, 2026 6:48:50 a.m. Pacific Daylight Time
        you wrote:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> You mean the xmlns attribute of the isComposing node ?</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> Regards,</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> Bogdan-Andrei Iancu</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> OpenSIPS Founder and Developer</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>     <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>     <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >> On 4/27/26 19:21, Robert Dyck wrote:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> I have looked at the module and it is not clear to
        me how one would</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> extract the name space from the xml.</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> <?xml version="1.0" encoding="UTF-8"
        standalone="no" ?></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> <isComposing
        xmlns=<a class="moz-txt-link-rfc2396E" href="urn:ietf:params:xml:ns:im-iscomposing">"urn:ietf:params:xml:ns:im-iscomposing"</a>></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>         <state>active</state></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>        
        <contenttype>text/plain</contenttype></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>         <refresh>60</refresh></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </isComposing>'</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>   _______________________________________________</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>   </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>>> Users mailing list</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>>> <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>>>
        <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>> On Monday, April 27, 2026 7:31:14 a.m. Pacific
        Daylight Time you wrote:</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> Robert,</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> Check
        <a class="moz-txt-link-freetext" href="thishttps://opensips.org/docs/modules/3.6.x/xml.html">thishttps://opensips.org/docs/modules/3.6.x/xml.html</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> Regards,</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> Bogdan-Andrei Iancu</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> OpenSIPS Founder and Developer</p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a></p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        >>>> <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></p>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>