Jump to content

XmlTools: Difference between revisions

47 bytes removed ,  5 April 2021
m
link fixes
m (changing link from http->https)
m (link fixes)
Line 118: Line 118:
Patch files are primarily used to create a list of commands within one file that you can pass to XmlTools to execute all at once, to insert blocks of XML into existing nodes, and to use [[wikipedia:JavaScript|JavaScript]] code to modify the XML.
Patch files are primarily used to create a list of commands within one file that you can pass to XmlTools to execute all at once, to insert blocks of XML into existing nodes, and to use [[wikipedia:JavaScript|JavaScript]] code to modify the XML.


To make a patch, create a plain-text file that uses the following commands and pass it to XmlTools using the <tt>patchfile</tt> command documented above. See [[Making a patch mod|HERE]] for instructions on making a patch mod package for the AE and [[Anniversary Edition/Framework#XML patching|HERE]] to learn how the [[AEI]] handles patch mods.
To make a patch, create a plain-text file that uses the following commands and pass it to XmlTools using the <tt>patchfile</tt> command documented above. See [[Making a patch mod|HERE]] for instructions on making a patch mod package for the AE and [[Anniversary Edition/Framework#Installation|HERE]] to learn how the [[AEI]] handles patch mods.


Comments in patch files begin with a '#'.
Comments in patch files begin with a '#'.
Line 138: Line 138:


<tt>[[XmlTools/Full_documentation#.40CUSTOM_CODE|@CUSTOM_CODE]]</tt>
<tt>[[XmlTools/Full_documentation#.40CUSTOM_CODE|@CUSTOM_CODE]]</tt>
:Executes the following [[wikipedia:JavaScript|JavaScript]] code for the purpose of editing the XML. If you are creating a [[Anniversary_Edition/Framework#XML_patching|patch mod]] for the AE, <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 following [[wikipedia:JavaScript|JavaScript]] code for the purpose of editing the XML. If you are creating a patch mod for the AE, <u>you should try to avoid this operation as much as possible</u> because it is much slower than the native XmlTools commands.


===Command options===
===Command options===