Jump to content

XmlTools/Full documentation: Difference between revisions

Line 496: Line 496:


===Description===
===Description===
This operation allows to insert new XML inside existing XML nodes.
Usage:
<tt>@ADD_INSIDE_NODES</tt>


===Example===
===Example===
Let's say your want do add a new glass particle to a ONCC.
'''XmlTools patch command:'''
@ADD_INSIDE_NODES ElementName "Particles" ParentElementName "ONCP" Files "ONCCgriffin_swat.xml"
<xml>
    <ONCPParticle>
          <Name>glass_break</Name>
          <Type>glass_break</Type>
          <BodyPart>None</BodyPart>
    </ONCPParticle>
</xml>
489

edits