This is a question directed at twig but i suppose its xml in general. Using TWIG how do you physically delete a node from a nodelist and how do you update a childvalue.
i.e. using this sample bit of xml
<root>
<user>
<id>1</id>
<name>Hazzie</name>
<dept>aaaaa</dept>
</user>
<user>
<id>2</id>
<name>ABC</name>
<dept>DEF</dept>
</user>
<user>
<id>3</id>
<name>UVW</name>
<dept>XYZ</dept>
</user>
</root>
1) how would i delete (physically from the xml file - not just from memory) the whole User with an element id of 2
2) how would i update User 3's dept from XYZ to ZZZ
Any pointers would be helpfull.
HazzieTS 5.5.2 on NT.