| HTML Tutorials |
|
|
| XML Tutorials |
|
|
| Browser Scripting |
|
|
| Server Scripting |
|
|
| .NET (dotnet) |
|
|
| Multimedia |
|
|
| Web Building |
|
|
| Java Tutorials |
|
|
| Programming Langauges |
|
|
| Soft Skills |
|
|
|
|
XPath Nodes
|
XPath operates under the concept that a document consists of a tree of nodes.
|
|
Node types
|
|
There is always a single root node in a XPath tree that serves as the root
and that appears as the first node in the tree.Under the root node every element in a
document has a corresponding element node that appears in the tree.
- Root node
- Element nodes
- Text nodes
- Attribute nodes
- Namespace nodes
- Processing instruction nodes
- Comment nodes
|
|
<?xml version="1.0" encoding="ISO-8859-1"?><bookstore><book>
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book></bookstore>
|
|
Relationship of Nodes
|
Parent
|
Each element has one parent.
In above example; the book element is the parent of the title, author,
year, and price:
|
|
Children
|
Element nodes may have zero, one or more children.
In above example; the title, author, year, and price elements are all
children of the book element:
|
|
Siblings
|
Nodes having same parent.
In above example; the title, author, year, and price elements are all
siblings:
|
|
Ancestors
|
A node's parent, parent's parent, etc.
In above example; the ancestors of the title element are the book
element and the bookstore element:
|
|
Descendants
|
A node's children, children's children, etc.
In above example; descendants of the bookstore element are the book,
title, author, year, and price elements:
|
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords: XPath Nodes,
xpath selectnodes,
xpath count nodes,
xsl node,
xslt node,
xpath node,
xslt node set,
xpath select node,
xsl node set,
xsl select node,
xsl node name,
node in xsl,
xslt node name,
xpath node name,
xsl current node,
xslt current node,
xpath text node,
xpath select nodes,
xpath find node,
xpath vb net,
node in xpath,
xpath get node,
xquery node,
asp net xpath,
xpath starts with,
nodes in xsl,
nodes xslt,
node in xslt,
xpath value of
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
|