while (<DATA>) { print unless ((/<dummy_record>/../<\/dummy_record>/) || (/<dummy_re +cord\/>/)); } __DATA__ <?xml version="1.0"> <escinfo> <dbf> <progress> <record> <title>11111</title> <id>abcd</id> </record> <record> <title>22222</title> <id>efgh</id> </record> <dummy_record> <dummy> <title>22222</title> <id>efgh</id> </dummy> </dummy_record> <dummy_record/> </progress> </dbf> </escinfo>
In reply to Re: Parsing XML file and removing the element
by gsiems
in thread Parsing XML file and removing the element
by sananpah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |