I’ve found xmlstarlet to be pretty good at this sort of thing.
http://xmlstar.sourceforge.net/
Should be available in most distro repositories, too. An introductory tutorial is here:
More Related Contents:
- How to pretty print XML from the command line?
- POST XML file using cURL command line
- How to insert a new element under another with xmlstarlet?
- Does any xml-based standard exist to define HTTP requests and responses as xml files?
- How can you find and replace text in a file using the Windows command-line environment?
- How to fix error: The markup in the document following the root element must be well-formed
- Does a valid XML file require an XML declaration?
- Are SVG parameters such as ‘xmlns’ and ‘version’ needed?
- Any tools to generate an XSD schema from an XML instance document? [closed]
- Configuring Hibernate logging using Log4j XML config file?
- External referenced DTD in XML
- XML Carriage return encoding
- XML namespaces and attributes
- How to read large xml file without loading it in memory and using XElement
- Are there any free Xml Diff/Merge tools available? [closed]
- Why are URLs in XML namespaces?
- Html inside XML. Should I use CDATA or encode the HTML [closed]
- How do you output the current element path in XSLT?
- Extract XML Value in bash script [duplicate]
- Navigating XML nodes in VBScript, for a Dummy
- how to edit XML using bash script?
- How does the billion laughs XML DoS attack work?
- How do I define HTML entity references inside a valid XML document?
- For loops vs. apply-templates
- What are the best practices for versioning XML schemas?
- How do you globally set Jackson to ignore unknown properties within Spring?
- What is the purpose of XSD files?
- How can I create XML from Perl?
- What is the difference between name() and local-name()?
- How to create xml from R objects, e.g., is there a ‘listToXml’ function?