XPath: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
XPath is a specification language that allows specifying parts of an XML structure. It is part of [[XSL]]. An XPath expression can be thought as an address of a part of an XML document. | XPath is a specification language that allows specifying parts of an XML structure. It is part of [[XSL]]. An XPath expression can be thought as an address of a part of an XML document. | ||
<font color= | <font color=darkgray>TODO: https://docs.oracle.com/javase/tutorial/jaxp/xslt/xpath.html</font> | ||
</font> | |||
=<span id='Tooling'></span>Command Line Tooling= | =<span id='Tooling'></span>Command Line Tooling= |
Revision as of 02:00, 1 July 2021
External
- https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/NSXML_Concepts/Articles/QueryingXML.html
- https://www.baeldung.com/linux/evaluate-xpath
Internal
Overview
XPath is a specification language that allows specifying parts of an XML structure. It is part of XSL. An XPath expression can be thought as an address of a part of an XML document.
TODO: https://docs.oracle.com/javase/tutorial/jaxp/xslt/xpath.html
Command Line Tooling
Java Support
Syntax
Full Path:
//element-name/element-name[index]/element-name[@attribute-name='value']
Recursive query based on element name:
//element-name[@attribute-name='value']
//element-name[sub-element-expression]