XMLStarlet
Jump to navigation
Jump to search
External
- https://www.baeldung.com/linux/evaluate-xpath#using-the-xmlstarlet-toolkit
- http://xmlstar.sourceforge.net/
Internal
Overview
XMLStartlet ships with one executable called xml
, which can be used as the short form of the xmlstarlet
command.
XPath Syntax
Usage
xml [options] <command> [command options]
General Options
Commands
sel
Select (query) an XML file using XPath. It can also generate an XSLT document. Internally, when sel
command is used, the tool converts internally the commands into an XSLT to perform the query.
xml sel -t <template options> <xml-file-name>
sel Options
-t
Create an XSLT template using the provided options.
-c
-v
ed
Edit an XML file.
tr
Transform an XML file using XSLT.