Commit 39bea949 authored by Dr. Martin Goik's avatar Dr. Martin Goik

XPath search without namespace

parent d72c7f06
......@@ -1719,9 +1719,18 @@ public class Article2Html {
</tip>
</figure>
<figure xml:id="sda1_dom_fig_domXpathImgSearch">
<figure xml:id="sda1_dom_fig_domXpathImgSearchNoNamespace">
<title>Search using <xref linkend="glo_XPath"/>
<code>//html:img</code></title>
<code>//img</code></title>
<programlisting language="java">static final XPathExpression&lt;Element&gt; xpathSearchImg =
XPathFactory.instance().compile(
"//img" ,
new ElementFilter() /* filter just elements */);</programlisting>
</figure>
<figure xml:id="sda1_dom_fig_domXpathImgSearch">
<title>Search and namespace</title>
<programlisting language="java">static final Namespace htmlNamespace <co
linkends="sda1_dom_fig_domXpathImgSearch-1"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment