Xpath Command: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/NSXML_Concepts/Articles/QueryingXML.html
* https://scriptingosx.com/2020/10/dealing-with-xpath-changes-in-big-sur/
* https://scriptingosx.com/2020/10/dealing-with-xpath-changes-in-big-sur/
=Internal=
=Internal=
* [[XPath#Tooling|XPath]]
* [[XPath#Tooling|XPath]]
Line 6: Line 8:


<code>xpath</code> is available on Mac.
<code>xpath</code> is available on Mac.
=XPath Syntax=
{{Internal|XPath#Syntax|XPath Syntax}}


=Usage=
=Usage=
=Query a Path=
<syntaxhighlight lang='bash'>
xpath ./my-file.xml project
xpath ./my-file.xml project/component
xpath ./my-file.xml project/component/option
</syntaxhighlight>

Latest revision as of 01:48, 1 July 2021