xml: more requested changes

beep
Daniel Birket 2021-08-24 14:57:47 -04:00 committed by Starbeamrainbowlabs
parent a9538950db
commit caa77bfe5a
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
`xml edit --rename "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|URI}}`
- Rename the XML elements of "table" named "rec" to "record":
- Rename sub-elements of the element "table" that are named "rec" to "record":
`xml edit --rename "{{/xml/table/rec}}" -v "{{record}}" {{path/to/input.xml|URI}}`

View File

@ -4,7 +4,7 @@
> Tip: use `xml elements` to display the XPATHs of an XML document.
> More information: <http://xmlstar.sourceforge.net/docs.php>.
- Select all elements matching "XPATH1" and print the value of the element "XPATH2":
- Select all elements matching "XPATH1" and print the value of their sub-element "XPATH2":
`xml select --template --match "{{XPATH1}}" --value-of "{{XPATH2}}" {{path/to/input.xml|URI}}`