From 92aa4d45cec7f6cff07e8dbc0e18a5864eaaecf7 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Tue, 17 Nov 2015 14:04:56 +0100 Subject: [PATCH] JDOM XPath Filters hint --- Doc/Sda1/dom.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Doc/Sda1/dom.xml b/Doc/Sda1/dom.xml index 4471e371a..9a0a0882e 100644 --- a/Doc/Sda1/dom.xml +++ b/Doc/Sda1/dom.xml @@ -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> -- GitLab