《xmlstarlet1.3.1userguide用户指南用法说明》由会员分享,可在线阅读,更多相关《xmlstarlet1.3.1userguide用户指南用法说明(34页珍藏版)》请在金锄头文库上搜索。
1、XmlStarlet Command Line XML Toolkit Users GuideMikhail GrushinskiyXmlStarlet Command Line XML Toolkit Users Guide by Mikhail GrushinskiyTable of Contents1. Introduction.11.1. About XmlStarlet.1 1.2. Main Features.1 1.3. Supported Platforms.22. Installation.32.1. Installation on Linux.3 2.2. Installa
2、tion on Solaris.3 2.3. Installation on MacOS X.3 2.4. Installation on Windows.33. Getting Started.43.1. Basic Command-Line Options.4 3.2. Studying Structure of XML Document.44. XmlStarlet Reference .74.1. Querying XML documents .7 4.2. Transforming XML documents.14 4.3. Editing XML documents.15 4.4.
3、 Validating XML documents.19 4.5. Formatting XML documents.20 4.6. Canonicalization of XML documents.22 4.7. XML and PYX format .24 4.8. Escape/Unescape special XML characters.25 4.9. List directory as XML.275. Common problems.285.1. Namespaces and default namespace .28 5.2. Special characters.29 5.
4、3. Sorting.30 5.4. Validation.30iiiChapter 1. Introduction1.1. About XmlStarletXMLStarlet (http:/ a set of command line utilities (tools) which can be usedto transform, query, validate, and edit XML documents and files using simple set of shell commands insimilar way it is done for plain text files
5、using UNIX grep, sed, awk, diff, patch, join, etc commands.This set of command line utilities can be used by those who deal with many XML documents on UNIX shell command prompt as well as for automated XML processing with shell scripts.XMLStarlet command line utility is written in C and uses libxml2
6、 and libxslt from http:/xmlsoft.org/. Implementation of extensive choice of options for XMLStarlet utility was only possible because of rich feature set of libxml2 and libxslt (many thanks to the developers of those libraries for great work).diff and patch options are not currentlyimplemented. Other features need some work too. Please, send an email to the project administrator (see http:/ you wish to help.XMLStarl