💾 Archived View for freeshell.de › tldr › xml-select.gmi captured on 2022-06-12 at 00:02:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

xml select

Select from XML documents using XPATHs.
Tip: use `xml elements` to display the XPATHs of an XML document.

More information.

xml select --template --match "{XPATH1}" --value-of "{XPATH2}" {path/to/input.xml|URI}
xml select --text --template --match "{XPATH1}" --value-of "{XPATH2}" --nl {path/to/input.xml|URI}
xml select --template --value-of "count({XPATH1})" {path/to/input.xml|URI}
xml select --text --template --inp-name --output " " --value-of "count(node())" --nl {path/to/input1.xml|URI} {path/to/input2.xml|URI}
xml select --help
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY