edit Edit an XML document. More information: http://xmlstar.sourceforge.net/docs.php. Delete elements…
Edit an XML document. More information: http://xmlstar.sourceforge.net/docs.php.
xml edit --delete "{{XPATH1}}" {{path/to/input.xml|URI}}
xml edit --move "{{XPATH1}}" "{{XPATH2}}" {{path/to/input.xml|URI}}
xml edit --rename "{{//*/@id}}" -v "{{ID}}" {{path/to/input.xml|URI}}
xml edit --rename "{{/xml/table/rec}}" -v "{{record}}" {{path/to/input.xml|URI}}
xml edit --update "{{xml/table/rec[@id=3]/@id}}" -v {{5}} {{path/to/input.xml|URI}}
edit
subcommand:xml edit --help