> Hi All, > > Can anyone please help me on finding out how to delete an element with > element id courses.specialization2 in the following XML structure? > > <?xml version="1.0" encoding="UTF-8" ?> > <error> > <pages> > <page descr="Specialization" id="specialization_name"> > <elements> > <element> > <element_id> > specialization.specialization_name > </element_id> > <descr> > Specialization Name: > </descr> > <required> > required field > </required> > </element> > </elements> > </page> > <page descr="Courses" id="courses_plan"> > <elements> > <element> > <element_id> > courses.specialization1 > </element_id> > <descr> > Specialization1: > </descr> > <required> > required field. > </required> > </element> > <element> > <element_id> > courses.specialization2 > </element_id> > <descr> > Specialization1: > </descr> > <required> > required field. > </required> > </element> > </elements> > </page> > </pages> > </error> > > Thanks
You can also use XSLT to get this done as well. Here is a link to another board that gives a pretty good explanation of how to remove nodes from an XML document: http://bytes.com/groups/xml/638356-xsl-how-remove-nodes-xml-tree-advanced --JW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324760 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4