489
edits
Script 10k (talk | contribs) |
Script 10k (talk | contribs) (→Syntax) |
||
Line 26: | Line 26: | ||
==Syntax== | ==Syntax== | ||
The following | The following options are listed when calling XmlTools with no options passed in. You can get the version with the option "--version". The commands below must be preceded by either <tt>XmlTools.exe</tt> (Windows) or <tt>./XmlTools</tt> (Mac). If XmlTools is not in the current folder, you can provide the full/relative path to it or set the path variable. On the Mac, be sure to use <tt>/</tt> rather than <tt>\</tt> in paths. | ||
The basic syntax is: | The basic syntax is: | ||
{| | {| | ||
|- | |- | ||
|'''Windows'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;"> | |'''Windows'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;">XmlTools.exe</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--add-values</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--element-name</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"Weapon"</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--new-val</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"w1_tap"</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--files</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"BINACJBOCharacter.xml"</span></tt> | ||
|- | |- | ||
|'''Mac'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;"> | |'''Mac'''||<tt><span style="background:rgb(235,235,235); border-radius:0.33em;">./XmlTools</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--add-values</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--element-name</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"Weapon"</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--new-val</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"w1_tap"</span> <span style="background:rgb(175,175,255); border-radius:0.33em;">--files</span> <span style="background:rgb(156,255,156); border-radius:0.33em;">"BINACJBOCharacter.xml"</span></tt> | ||
|} | |} | ||
Line 41: | Line 41: | ||
|- valign="top" | |- valign="top" | ||
|<span style="background:rgb(235,235,235); border-radius:0.33em;">'''Invocation'''</span> | |<span style="background:rgb(235,235,235); border-radius:0.33em;">'''Invocation'''</span> | ||
| | |Note that if XmlTools is not in the Command Prompt/Terminal's current directory, you must provide the full path to it or set the path variable. | ||
|- | |- | ||
|<span style="background:rgb(175,175,255); border-radius:0.33em;">'''Operation'''</span>||The command to perform. Note | |<span style="background:rgb(175,175,255); border-radius:0.33em;">'''Operation'''</span>||The command to perform. Note the commands are prefaced by a <tt>--</tt>, some commands have a short version which is prefaced by a single <tt>-</tt> followed by a letter. | ||
|- | |- | ||
|<span style="background:rgb(255 | |<span style="background:rgb(156,255,156); border-radius:0.33em;">'''Operation Value'''</span>||This is where you supply the value that this specific command needs. As seen below, --element-name requires the XML element name, so we provide that here. Quotes should be used when the value has spaces or to avoid [http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.html Unix shell expansion]. | ||
|- valign="top" | |- valign="top" | ||
|} | |} | ||
edits