Java - Index
Java SE 6
Frameworks - Index
Database - Index
Technology - Index
Web Development - Index
Build/Test Tools - Index
Servers - Index
Servers for Java
RoseIndia.net Programming Tutorials
XPath Tutorials and examples.
Use of preceding-sibling in XPath
In the previous sections of XPath tutorials you must have well studied about preceding, following-sibling axes.
Using following-sibling in XPath
In this part of tutorial we are going to describe you how one can use "following-sibling" axis in to the XPath expression.
Use of "preceding" axis in XPath expression
In this part of tutorial we are going to describe you the use of "preceding" axis in XPath expression. "preceding" axis will select each and every element or node before the given context node.
Use of "following" in XPath
In this section you will learn how to use "following" in your XPath expression. "following" axis in XPath expression will select each and every node or element following this current node closing point.
Use of "descendant" in XPath expression
In this section of XPath in Java tutorial you will learn use of descendant in XPath expression.
Use of "parent" in XPath expression
In our previous section of tutorials you have studied how to use child axis in XPath expression. Now this section will describe the use of "parent" axis.
Using child axis in XPath expression
In this section you will know about the use of "child axis". "child axis" consists of the children of context node.
Use of @ for attribute in XPath
In the previous section of XPath tutorial we have studied how to show all elements of an XML file.
Use of "|" separator for selecting more than one path
You can execute multiple expressions on an XML file with the use of XPath "|" separator. It allows you more flexibility by allowing you to execute multiple expressions at a time.
Use of string-length() function in XPath
In this section we will discuss about string-length() function in XPath. string-length() function returns the number of character in a string and you can use "=","<" and ">" for comparing two numbers.