DeveloperHell | Languages: All | PHP | Python | .NET | Java | CSS | Ruby   Site: Statistics
want to join us? register, it's easy | help
category icon

Finding Elements by Attributes in a DOM Document Using XPath

in Java added by admin, on 18/11/2007 advanced examples

XPath is an expression language for selecting nodes in an XML file. This example adds to those examples by demonstrating the ability to select elements based on their attributes.
This example demonstrates some common uses of expressions that use attributes; for more information on XPath, see the specification at http://www.w3c.org/TR/xpath. In the example, the result of an XPath expression is shown next to the expression; the numbers are ids of elements in the sample file shown at the end of the example.

comment save report
 
submitted
Sun, Nov 18th 2007, 18:54
clicks today
0
clicks this month
9
clicks all time
85