diff --git a/Doc/Sda1/dom.xml b/Doc/Sda1/dom.xml index 65f572e780e336eb89c3ec51c030fc2595fc14ff..54b8bba9fada39545f9ee64758905fe6242d9ae4 100644 --- a/Doc/Sda1/dom.xml +++ b/Doc/Sda1/dom.xml @@ -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<Element> 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"