| 1234567891011121314151617181920212223242526272829 |
- <?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=>doc)
- = '<?xml version="1.0" encoding="UTF-8"?><a><b>test</b></a>';
- xlog("content of node b: $xml(x=>xpath:/a/b/text())\n");
- $xml(x=>xpath:/a/b) = "1234";
- ...
- </programlisting>
- </example>
- </section>
- </section>
|