| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<refentry xmlns="http://docbook.org/ns/docbook" |
| 3 |
xmlns:db="http://docbook.org/ns/docbook" |
| 4 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
| 5 |
version="5.0"> |
| 6 |
<info> |
| 7 |
<copyright><year>2012</year></copyright> |
| 8 |
|
| 9 |
<author> |
| 10 |
<personname> |
| 11 |
<firstname>Mikhail</firstname> |
| 12 |
<surname>Grushinskiy</surname> |
| 13 |
</personname> |
| 14 |
<contrib>XMLStarlet creator.</contrib> |
| 15 |
</author> |
| 16 |
|
| 17 |
<releaseinfo>Version <phrase role="VERSION"/></releaseinfo> |
| 18 |
</info> |
| 19 |
|
| 20 |
<refmeta> |
| 21 |
<refentrytitle>xmlstarlet</refentrytitle> |
| 22 |
<manvolnum>1</manvolnum> |
| 23 |
<refmiscinfo class="manual">XMLStarlet Manual</refmiscinfo> |
| 24 |
</refmeta> |
| 25 |
|
| 26 |
<refnamediv> |
| 27 |
<refname>xmlstarlet</refname> |
| 28 |
|
| 29 |
<refpurpose>command line <acronym>XML/XSLT</acronym> toolkit</refpurpose> |
| 30 |
</refnamediv> |
| 31 |
|
| 32 |
<refsynopsisdiv> |
| 33 |
<cmdsynopsis> |
| 34 |
<command><phrase role="PROG"/></command> |
| 35 |
<arg choice="opt" rep="repeat"><replaceable>options</replaceable></arg> |
| 36 |
<arg choice="req"><replaceable>command</replaceable></arg> |
| 37 |
<arg choice="opt" rep="repeat"><replaceable>cmd-options</replaceable></arg> |
| 38 |
</cmdsynopsis> |
| 39 |
</refsynopsisdiv> |
| 40 |
|
| 41 |
<refsect1 xml:id="introduction"> |
| 42 |
<title>Introduction</title> |
| 43 |
|
| 44 |
<para>XMLStarlet is a set of command line utilities (tools) which can be |
| 45 |
used to transform, query, validate, and edit XML documents and files using |
| 46 |
simple set of shell commands in similar way it is done for plain text |
| 47 |
files using UNIX grep, sed, awk, diff, patch, join, etc commands. This set |
| 48 |
of command line utilities can be used by those who deal with many XML |
| 49 |
documents on UNIX shell command prompt as well as for automated XML |
| 50 |
processing with shell scripts.</para> |
| 51 |
</refsect1> |
| 52 |
|
| 53 |
<refsect1 xml:id="options"> |
| 54 |
<title>Options</title> |
| 55 |
|
| 56 |
<variablelist> |
| 57 |
<varlistentry> |
| 58 |
<term><option>--version</option></term> |
| 59 |
|
| 60 |
<listitem> |
| 61 |
<simpara>Display the version of |
| 62 |
<application>xmlstarlet</application>.</simpara> |
| 63 |
</listitem> |
| 64 |
</varlistentry> |
| 65 |
|
| 66 |
<varlistentry> |
| 67 |
<term><option>--help</option></term> |
| 68 |
|
| 69 |
<listitem> |
| 70 |
<simpara>Display help.</simpara> |
| 71 |
</listitem> |
| 72 |
</varlistentry> |
| 73 |
</variablelist> |
| 74 |
</refsect1> |
| 75 |
|
| 76 |
<refsect1 xml:id="shell"> |
| 77 |
<title>Commands</title> |
| 78 |
|
| 79 |
<para><command><phrase role="PROG"/></command> |
| 80 |
<replaceable>command</replaceable> <option>--help</option> |
| 81 |
for command specific help</para> |
| 82 |
|
| 83 |
<para>Available commands include:</para> |
| 84 |
|
| 85 |
<variablelist> |
| 86 |
<varlistentry> |
| 87 |
<term><option>ed (or edit)</option></term> |
| 88 |
|
| 89 |
<listitem> |
| 90 |
<simpara>Edit/update XML document(s).</simpara> |
| 91 |
</listitem> |
| 92 |
</varlistentry> |
| 93 |
|
| 94 |
<varlistentry> |
| 95 |
<term><option>sel (or select)</option></term> |
| 96 |
|
| 97 |
<listitem> |
| 98 |
<simpara>Select data or query XML document(s) (XPATH, |
| 99 |
etc).</simpara> |
| 100 |
</listitem> |
| 101 |
</varlistentry> |
| 102 |
|
| 103 |
<varlistentry> |
| 104 |
<term><option>tr (or transform)</option></term> |
| 105 |
|
| 106 |
<listitem> |
| 107 |
<simpara>Transform XML documents(s) using XSLT.</simpara> |
| 108 |
</listitem> |
| 109 |
</varlistentry> |
| 110 |
|
| 111 |
<varlistentry> |
| 112 |
<term><option>val (or validate)</option></term> |
| 113 |
|
| 114 |
<listitem> |
| 115 |
<simpara>Validate XML document(s) |
| 116 |
(well-formed/DTD/XSD/RelaxNG).</simpara> |
| 117 |
</listitem> |
| 118 |
</varlistentry> |
| 119 |
|
| 120 |
<varlistentry> |
| 121 |
<term><option>fo (or format)</option></term> |
| 122 |
|
| 123 |
<listitem> |
| 124 |
<simpara>Format XML document(s).</simpara> |
| 125 |
</listitem> |
| 126 |
</varlistentry> |
| 127 |
|
| 128 |
<varlistentry> |
| 129 |
<term><option>el (or elements)</option></term> |
| 130 |
|
| 131 |
<listitem> |
| 132 |
<simpara>Display element structure of XML document.</simpara> |
| 133 |
</listitem> |
| 134 |
</varlistentry> |
| 135 |
|
| 136 |
<varlistentry> |
| 137 |
<term><option>c14n (or canonic)</option></term> |
| 138 |
|
| 139 |
<listitem> |
| 140 |
<simpara>XML canonicalization.</simpara> |
| 141 |
</listitem> |
| 142 |
</varlistentry> |
| 143 |
|
| 144 |
<varlistentry> |
| 145 |
<term><option>ls (or list)</option></term> |
| 146 |
|
| 147 |
<listitem> |
| 148 |
<simpara>List directory as XML.</simpara> |
| 149 |
</listitem> |
| 150 |
</varlistentry> |
| 151 |
|
| 152 |
<varlistentry> |
| 153 |
<term><option>esc (or escape)</option></term> |
| 154 |
|
| 155 |
<listitem> |
| 156 |
<simpara>Escape special XML characters.</simpara> |
| 157 |
</listitem> |
| 158 |
</varlistentry> |
| 159 |
|
| 160 |
<varlistentry> |
| 161 |
<term><option>unesc (or unescape)</option></term> |
| 162 |
|
| 163 |
<listitem> |
| 164 |
<simpara>Unescape special XML characters.</simpara> |
| 165 |
</listitem> |
| 166 |
</varlistentry> |
| 167 |
|
| 168 |
<varlistentry> |
| 169 |
<term><option>pyx (or xmln)</option></term> |
| 170 |
|
| 171 |
<listitem> |
| 172 |
<simpara>Convert XML into PYX format (based on ESIS - ISO |
| 173 |
8879).</simpara> |
| 174 |
</listitem> |
| 175 |
</varlistentry> |
| 176 |
|
| 177 |
<varlistentry> |
| 178 |
<term><option>p2x (or depyx)</option></term> |
| 179 |
|
| 180 |
<listitem> |
| 181 |
<simpara>Convert PYX into XML.</simpara> |
| 182 |
</listitem> |
| 183 |
</varlistentry> |
| 184 |
</variablelist> |
| 185 |
</refsect1> |
| 186 |
|
| 187 |
<refsect1> |
| 188 |
<title>References</title> |
| 189 |
|
| 190 |
<para>XMLStarlet is a command line toolkit to query/edit/check/transform |
| 191 |
XML documents (for more information see |
| 192 |
http://xmlstar.sourceforge.net/).</para> |
| 193 |
</refsect1> |
| 194 |
|
| 195 |
<refsect1> |
| 196 |
<title>Bugs</title> |
| 197 |
<para> Report bugs to the mailing list, |
| 198 |
<email>[email protected]</email> or the bug tracker: <link |
| 199 |
xlink:href="http://sourceforge.net/tracker/?group_id=66612&atid=515106"/>. |
| 200 |
</para> |
| 201 |
</refsect1> |
| 202 |
</refentry> |