Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

XPath

Questa pagina è in fase di traduzione: contribuisci anche tu completando le parti mancanti. Il testo da tradurre potrebbe essere nascosto nella pagina: vai in modifica per visualizzarlo

XPath stands for XML Path Language, it uses a non-XML syntax that provides a flexible way of addressing (pointing to) different parts of an XML document. As well as this, it can also be used to test addressed nodes within a document to determine whether they match a pattern or not.

XPath is mainly used in XSLT, but can also be used as a much more powerful way of navigating through the DOM of any XML based language documents, such as HTML and XUL, instead of relying on the document.getElementById method, the element.childNodes properties, and other DOM Core features. The following is vague: This is especially useful within extensions, particularly regarding to overlays.

XPath uses a path notation (as in URLs) for navigating through the hierarchical structure of an XML document. It uses a non-XML syntax so that it can be used in URIs and XML attribute values.

Documentation

Introduction to using XPath in JavaScript
Describes a non-XSLT use of XPath.
XPath:Axes
List and definition of the axes defined in the XPath specification. Axes are used to describe the relationships between nodes.
XPath:Functions
List and description of the core XPath functions and XSLT-specific additions to XPath.
Transforming XML with XSLT
XSLT uses XPath to address code segments in a XML document that it wishes to transform.
Using XPath
Code snippets and examples of using DOM bindings for XPath.
What is XSLT?
This extensive introduction to XSLT and XPath assumes no prior knowledge of the technologies, and guides the reader through background, context, structure, concepts and introductory terminology.

View All...

Tools

XPather
Feature rich XPath generator, editor, inspector and simple extraction tool (FireFox Add-On).
FireXPath
XPath panel that integrates tightly into FireBug, providing an editor and inspector (FireFox Add-On).
XPath Checker
An interactive editor for XPath expressions (FireFox Add-On).
SketchPath
A Graphical XPath Builder/Debugger(.NET).
XSLT, XQuery, XML, DOM, JSONPath

 

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: teoli, fusionchess
 Ultima modifica di: teoli,