489
edits
Script 10k (talk | contribs) |
Script 10k (talk | contribs) |
||
Line 566: | Line 566: | ||
===Description=== | ===Description=== | ||
This operation allows to remove existing XML nodes. | |||
Usage: | |||
<tt>@REMOVE_NODES</tt> | |||
===Example=== | ===Example=== | ||
Let's say your want do remove the glass from a Swat Griffin ONCC. | |||
'''XmlTools patch command:''' | |||
@REMOVE_NODES XPathExpression "/Oni/ONCP/Particles/ONCPParticle[Name = 'glass_break' ]" Files "ONCCgriffin_swat.xml" | |||
{| style="margin: 1em auto 1em auto;" <!-- Centers table --> | |||
! style="width: 50%;" | XML Original | |||
! style="width: 50%;" | XML After Command | |||
|- | |||
| | |||
<Oni> | |||
... | |||
<ONCP id="3"> | |||
<Particles> | |||
... | |||
<span style="color:blue"><ONCPParticle></span> | |||
<span style="color:blue"><Name>glow</Name></span> | |||
<span style="color:blue"><Type>h2h_griglow_e01</Type></span> | |||
<span style="color:blue"><BodyPart>None</BodyPart></span> | |||
<span style="color:blue"></ONCPParticle></span> | |||
<span style="color:blue"><ONCPParticle></span> | |||
<span style="color:blue"><Name>glass_break</Name></span> | |||
<span style="color:blue"><Type>glass_break</Type></span> | |||
<span style="color:blue"><BodyPart>None</BodyPart></span> | |||
<span style="color:blue"></ONCPParticle></span> | |||
<Particles> | |||
... | |||
</ONCP> | |||
</Oni> | |||
| | |||
<Oni> | |||
... | |||
<ONCP id="3"> | |||
<Particles> | |||
... | |||
<span style="color:red"><ONCPParticle></span> | |||
<span style="color:red"><Name>glow</Name></span> | |||
<span style="color:red"><Type>h2h_griglow_e01</Type></span> | |||
<span style="color:red"><BodyPart>None</BodyPart></span> | |||
<span style="color:red"></ONCPParticle></span> | |||
<Particles> | |||
... | |||
</ONCP> | |||
</Oni> | |||
|} | |||
==@COMMAND== | ==@COMMAND== |
edits