How to delete an XML element according to value of one of its children? - Ruby

shery

New Member
I have an xml element looking something like this:\[code\]<Description> <ID>1234</ID> <SubDescription> <subID>4501</subID> </SubDescription> <SubDescription> <subID>4502</subID> </SubDescription></Description>\[/code\]How can I delete the entire "Description" element according to the value of its "ID" child?
 
Back
Top