XMLStarlet Command Line XML Toolkit
主要功能有如下
- Check or validate XML files (simple well-formedness check, DTD, XSD, RelaxNG)
- Calculate values of XPath expressions on XML files (such as running sums, etc)
- Search XML files for matches to given XPath expressions
- Apply XSLT stylesheets to XML documents (including EXSLT support, and passing parameters to stylesheets)
- Query XML documents (ex. query for value of some elements of attributes, sorting, etc)
- Modify or edit XML documents (ex. delete some elements)
- Format or "beautify" XML documents (as changing indentation, etc)
- Fetch XML documents using http:// or ftp:// URLs
- Browse tree structure of XML documents (in similar way to 'ls' command for directories)
- Include one XML document into another using XInclude
- XML c14n canonicalization
- Escape/unescape special XML characters in input text
- Print directory as XML document
- Convert XML into PYX format (based on ESIS - ISO 8879), and vice versa
我现在只用到了校验xml格式和格式化xml代码功能,小巧,好用,再也不用庞大的xmlspy了
ps:设置为 editplus 自定义工具,用起来更爽 一键校验,格式化 :)