You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules/xmlops/doc/functions.xml

30 lines
871 B

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section id="textopsx.pvs" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Pseudo-Variables</title>
<section id="pv-xml">
<title>
<function moreinfo="none">$xml(name=>spec)</function>
</title>
<para>
Pseudo-variable for XML document operations using xpath syntax. For
more see the Pseudo-Variables Cookbook.
</para>
<example>
<title><function>xml</function> usage</title>
<programlisting format="linespecific">
...
$xml(x=&gt;doc)
= '&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;a&gt;&lt;b&gt;test&lt;/b&gt;&lt;/a&gt;';
xlog("content of node b: $xml(x=&gt;xpath:/a/b/text())\n");
$xml(x=&gt;xpath:/a/b) = "1234";
...
</programlisting>
</example>
</section>
</section>