Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-Bücher Downloads Mit uns in Verbindung treten Über uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


XPath Axes

Previous Next





XPath Axes

Mittellinie definiert Nullpunkt-einstellte im Verhältnis zu dem gegenwärtigen Nullpunkt.



Xpath Axes

There are thirteen different axes in the XPath specification. An axis represents a relationship to the context node, and is used to locate nodes relative to the tree. The following is an extremely brief description of thirteen available axes



  1. Ancestor

    This indicates all the ancestors of the context node beginning with the parent node and traveling through to the root node.



  2. Ancestor-or-self

    Indicates the context node and all of its ancestors, including the root node.



  3. Attribute

    Indicates the attributes of the context node. This axis can be abbreviated with the at sign (@).



  4. Child

    This Indicates the children of the context node. If an XPath expression does not specify an axis,then it is understood by default. Since only the root node or element nodes have children,any other use will select nothing.



  5. Descendant

    Indicates all the children of the context node, and all of their children, and so forth. Attribute and namespace nodes are not included - the parent of an attribute node is an element node, but attribute nodes are not the children of their parents.



  6. Descendant-or-self

    Indicates the context node and all of its descendants. Attribute and namespace nodes are not included - the parent of an attribute node is an element node, but attribute nodes are not the children of their parents.



  7. Following

    Indicates all the nodes that appear after the context node, except any descendant, attribute, and namespace nodes.



  8. Following-sibling

    Indicates all the nodes that have the same parent as the context node and appear after the context node in the source document.



  9. Namespace

    Indicates all the nodes that are in scope for the context node. In this case, the context node must be an element node.



  10. Parent

    Indicates the single node that is the parent of the context node. It can be abbreviated as two periods (..).



  11. preceding

    Indicates all the nodes that precede the context node in the document except any ancestor, attribute and namespace nodes.



  12. preceding-sibling

    Indicates all the nodes that have the same parent as the context node and appear before the context node in the source document.



  13. self

    Indicates the context node itself. It can be abbreviated as a single period (.).




Location Path Expression

A location path can be relative or absolute.

An absolute location path starts with a slash ( / ) but relative location path does not. In both cases the location path consists of one or more steps, each separated by a slash:
 

An absolute location path:
/step/step/...
A relative location path:
step/step/...

Aller Schritt wird gegen die Nullpunkte im gegenwärtigen Nullpunkt-einstellte ausgewertet.

Ein Schritt besteht:

  • Eine Mittellinie, die das Baumverhältnis zwischen den vorgewählten Nullpunkten und dem gegenwärtigen Nullpunkt definiert
  • Nullpunkttest, der einen Nullpunkt innerhalb einer Mittellinie kennzeichnet
  • Null oder mehr Prädikate für weiteres verfeinern vorgewählt Nullpunkt-einstellten

Syntax des Position Schrittes:


axisname::nodetest[predicate]

Example:

Example Result
child::book Selects all book nodes that are children of the current node
attribute::lang Selects the lang attribute of the current node
child::* Selects all children of the current node
attribute::* Selects all attributes of the current node
child::text() Selects all text child nodes of the current node
child::node() Selects all child nodes of the current node
descendant::book Selects all book descendants of the current node
ancestor::book Selects all book ancestors of the current node
ancestor-or-self::book Selects all book ancestors of the current node - and the current as well if it is a book node
child::*/child::price Selects all price grandchildren of the current node




Previous Next

Keywords: xpath tutorial, xsl xpath, xpath xslt, xpath xml, xpath reference, javascript xpath, xpath examples, xpath name, xpath syntax, xpath attribute, xpath html, xpath attributes, xpath sort, xpath cdata, xpath functions, xpath text, xpath w3schools, xpath position, xpath example, xpath variable, xpath count, xpath tutorials, xpath namespace, xpath xmlns, xpath sorting, xpath document, xpath if, xpath concat, xpath w3c, xpath sum, xpath contains, xpath c#, xpath parent, xpath editor, xpath substring, xpath value, xpath xalan, xpath replace, xquery xpath, xpath function, xpath id, xpath node, xpath number, xpath match, xpath expression, msxml xpath, xpath xsd, xpath date, xpath element, xpath dom, xpath child, select xpath, xpath using, xpath string, schema xpath, xpath empty, xpath axis, xslt axis, multiple axes, xsl axis


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.