Package edu.umd.cs.findbugs.xml
Class XPathFind
java.lang.Object
edu.umd.cs.findbugs.xml.XPathFind
Find nodes in a dom4j tree that match a particular XPath expression. The
main() driver prints out information about matching nodes in an XML document.
For example, to find the list of non-disabled detectors in a FindBugs plugin descriptor, you can use the expression
/FindbugsPlugin/Detector[boolean(@disabled)=false()]/@class
- Author:
- David Hovemeyer
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
XPathFind
public XPathFind(org.dom4j.Document document)
-
-
Method Details
-
find
-
match
protected abstract void match(org.dom4j.Node node) -
main
- Throws:
Exception
-