xml edit
Edit an XML document. More information: https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139594320.
- Delete elements matching an XPATH from an XML document:
xml ""
- Move an element node of an XML document from XPATH1 to XPATH2:
xml "" ""
- Rename all attributes named "id" to "ID":
xml "" -v ""
- Rename sub-elements of the element "table" that are named "rec" to "record":
xml "" -v ""
- Update the XML table record with "id=3" to the value "id=5":
xml ""
- Display help:
xml
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
