From Wikipedia, the free encyclopedia
Jump to: navigation, search

XMLStarlet is a command-line XML utility which allows the modification and validation of XML documents.

It is released under an MIT License.

Example usage[edit]

An XML document can be validated against an XSD schema as follows:

xmlstarlet val -e -s my.xsd my.xml

One can extract element definitions or their values, selecting them with XPath notation:

xmlstarlet sel -t -v 'html/head/title' some.xml

External links[edit]