18,700
edits
Script 10k (talk | contribs) m (→Input Options) |
m (link fixes) |
||
Line 14: | Line 14: | ||
XmlTools can be used as a standalone tool or as a base for another tools. It can be issued commands directly on the command-line interface (CLI) or passed a text file on the CLI with a list of commands to perform. | XmlTools can be used as a standalone tool or as a base for another tools. It can be issued commands directly on the command-line interface (CLI) or passed a text file on the CLI with a list of commands to perform. | ||
Aditional documentation for XmlTools can be found in [[XmlTools/Full | Aditional documentation for XmlTools can be found in [[XmlTools/Full documentation]]. | ||
==Links== | ==Links== | ||
Line 61: | Line 61: | ||
===Options=== | ===Options=== | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--add-values|-a, --add-values]]</tt> | ||
:Add new values to a set of XML elements; | :Add new values to a set of XML elements; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--remove-values|--remove-values]]</tt> | ||
:Removes values from a set of XML elements; | :Removes values from a set of XML elements; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--replace-value|--replace-value]]</tt> | ||
:Replaces 1 value in a set of XML elements; | :Replaces 1 value in a set of XML elements; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--replace-all-values|--replace-all-values]]</tt> | ||
:Replaces all values in a set of XML elements; | :Replaces all values in a set of XML elements; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--update-elements|-u, --update-elements]]</tt> | ||
:Updates all values in a set of XML elements; | :Updates all values in a set of XML elements; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#--invert-elements|-i, --invert-elements]]</tt> | ||
:Inverts a set of XML elements. | :Inverts a set of XML elements. | ||
Line 133: | Line 133: | ||
Operations in patch files always begin with '@'. They are named using all letters in upper case and words separated by underscore (_). | Operations in patch files always begin with '@'. They are named using all letters in upper case and words separated by underscore (_). | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#.40XML_TOOLS|@XML_TOOLS]]</tt> | ||
:XmlTools information. Right now is only used to specify the executable minimum version for the current patch file; | :XmlTools information. Right now is only used to specify the executable minimum version for the current patch file; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#.40ADD_INSIDE_NODES|@ADD_INSIDE_NODES]]</tt> | ||
:Adds new XML nodes; | :Adds new XML nodes; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#.40REMOVE_NODES|@REMOVE_NODES]]</tt> | ||
:Removes existing XML nodes; | :Removes existing XML nodes; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#.40COMMAND|@COMMAND]]</tt> | ||
:Runs any of the commands available under "Command-line options" above. Use standard command-line syntax described in that section; | :Runs any of the commands available under "Command-line options" above. Use standard command-line syntax described in that section; | ||
<tt>[[XmlTools/ | <tt>[[XmlTools/Full_documentation#.40CUSTOM_CODE|@CUSTOM_CODE]]</tt> | ||
:Executes the [[wikipedia:JavaScript|JavaScript]] code for XML editing. When specifically you are using this operation for [[Anniversary_Edition/Framework#XML_patching|AE Patches]] <u>you should try to avoid this operation as much as possible</u> because it is much slower than the native XmlTools commands; | :Executes the [[wikipedia:JavaScript|JavaScript]] code for XML editing. When specifically you are using this operation for [[Anniversary_Edition/Framework#XML_patching|AE Patches]] <u>you should try to avoid this operation as much as possible</u> because it is much slower than the native XmlTools commands; | ||