Skip to content
Snippets Groups Projects
Commit 92aa4d45 authored by Goik Martin's avatar Goik Martin
Browse files

JDOM XPath Filters hint

parent 04e56ff5
No related branches found
No related tags found
No related merge requests found
......@@ -1616,14 +1616,20 @@ public class DomXpath {
<qandadiv>
<qandaentry>
<question>
<para>Casts in XPath expression related queries are just ugly.
We may get rid of this problem using Filter instances.</para>
<para>Casts in XPath expression related queries (and elsewhere!)
being required is just ugly. We may get rid of this problem
using <classname
xlink:href="http://www.jdom.org/docs/apidocs/org/jdom2/filter/Filters.html">Filters</classname>
instances.</para>
<para>Re-write <xref linkend="domFindImages"/> avoiding casts
completely.</para>
<tip>
<para>Use the <methodname
<para>Read <quote
xlink:href="http://www.programcreek.com/java-api-examples/index.php?api=org.jdom2.filter.Filters#115369">Java
Code Examples for org.jdom2.filter.Filters</quote> and use the
<methodname
xlink:href="http://www.jdom.org/docs/apidocs/org/jdom2/xpath/XPathFactory.html#compile(java.lang.String,%20org.jdom2.filter.Filter)">compile(...)</methodname>
method.</para>
</tip>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment