Jump to content

XmlTools/Full documentation: Difference between revisions

Line 623: Line 623:


===Description===
===Description===
This operation allows you to use any of the [[XmlTools#Command-line_operations|command line operations]] in a patch file.
Usage:
<tt>@COMMAND Options "Command line operation"</tt>
Note: For command line input operations which use quotes ("") replace the quotes with apostrophes (<nowiki>''</nowiki>).


===Example===
===Example===
Let's say your want to perform the same operation in [[XmlTools/Full_Documentation#Example|--add-values example]]. This operation adds the Unkillable and the NonCombatant flag to A_L18 character.
'''XmlTools patch command:'''
@COMMAND Options "--add-values --new-val 'Unkillable NonCombatant' --xpath-expression '/Oni/Objects/CHAR[@Id='3926']/OSD/Flags' --files 'BINACJBOCharacter.xml'"
The resulting XML file is exactly the same of [[XmlTools/Full_Documentation#Example|--add-values example]].


==@CUSTOM_CODE==
==@CUSTOM_CODE==
489

edits