Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
92aa4d45
Commit
92aa4d45
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
JDOM XPath Filters hint
parent
04e56ff5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sda1/dom.xml
+9
-3
9 additions, 3 deletions
Doc/Sda1/dom.xml
with
9 additions
and
3 deletions
Doc/Sda1/dom.xml
+
9
−
3
View file @
92aa4d45
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment