💾 Archived View for freeshell.de › tldr › xml-select.gmi captured on 2023-07-10 at 15:05:10. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Select from XML documents using XPATHs.
Tip: use `xml elements` to display the XPATHs of an XML document.
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).