Hi All,
I'm wall bangin' over how to remove nodes from an entire XML object
where attributes have a certain value:
Example XML is :
<root>
<additions type="group" addedCount="2"/>
<page label="Page">
<group1 type="group" addedCount="3"/>
<Stuff4 label="Stuff4"/>
<Stuff5 label="Stuff5"/>
<Stuff6 label="Stuff6"/>
<slot1 type="separator" addedCount="3"/>
<Stuff1 label="Stuff1">
<stuff1 type="separator" addedCount="0"/>
</Stuff1>
<Stuff2 label="Stuff2">
<stuff2 type="group" addedCount="0"/>
</Stuff2>
<Stuff3 label="Stuff3"/>
</page>
<help label="Help"/>
</root>
I'd just like to delete all nodes in the entire structure that have
(say) attribute type="group". I do like E4X, I think it is very elegant
.... just the docs are very light and the examples are few an' far
between.
All assistance appreciated.
Greg.
This email and any files transmitted with it may be confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. This email may contain personal information of individuals, and be
subject to Commonwealth and/or State privacy laws in Australia. This email is
also subject to copyright. If you are not the intended recipient, you must not
read, print, store, copy, forward or use this email for any reason, in
accordance with privacy and copyright laws. If you have received this email in
error, please notify the sender by return email, and delete this email from
your inbox.