|
|
Line 55: |
Line 55: |
| |- valign="top" | | |- valign="top" |
| |} | | |} |
|
| |
| ==Global command-line arguments==
| |
| You may use these arguments with each command listed in the "Command-line operations" section below. Note that the <tt>-element</tt> is required in all CLI commands, otherwise you can't tell XmlTools what to modify.
| |
| {|
| |
| !
| |
| ! style="width:175px"|
| |
| |-
| |
| |'''(Optional)'''||<tt>-nobackups</tt>||XmlTools will not create a backup file (speeds up operations).
| |
| |-
| |
| |'''(Optional)'''||<tt>-debug</tt>||Not used yet. It will be probably used to output some debugging information in the future.
| |
| |- valign="top"
| |
| |'''(Optional)'''||<tt>-filename:<XML file></tt>||Specifies file to modify (allows wildcards '*','?') (backup made by default) (when not used, XmlTools will apply the operation over all the XML files in the same directory as xmlTools.exe).
| |
| |-
| |
| |style="background-color:rgb(175,175,0)"|'''(Required)'''||<tt>-element:<XML tag></tt>||Specifies XML tag to look for in the file.
| |
| |-
| |
| |'''(Optional)'''||<tt>-parelement:<XML tag></tt>||Specifies XML tag that contains -element tag to pick between elements that have the same name but have different parent elements.
| |
| |}
| |
|
| |
| ;-parelement
| |
| :Let's say that an XML file has two tags with the same name, e.g.:
| |
| <xml>
| |
| <Volume>
| |
| <Min>1</Min>
| |
| <Max>1</Max>
| |
| </Volume>
| |
| <Pitch>
| |
| <Min>1</Min>
| |
| <Max>1</Max>
| |
| </Pitch>
| |
| <xml>
| |
|
| |
| In the above code you can differentiate the two "Min" elements by their parent elements. So you can use <tt>-element:Min -parelement:Pitch</tt> to refer to the "Min" element under "Pitch".
| |
|
| |
|
| ==Command-line operations== | | ==Command-line operations== |