Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
elementdelete.pl filename FTP54 should generate:<Requests> <Request ToDir="FTP54"> <TypeA> <fileNumber ID="54" /> </TypeA> </Request> <Request ToDir="FTP78"> <TypeA> <fileNumber ID="78" /> </TypeA> </Request> <Request ToDir="FTP79"> <TypeA> <fileNumber ID="79" /> </TypeA> </Request> </Requests>
I'm thinking to use XML::Twig, but have not been able to find any examples to delete node from xml file. Thanks.<Requests> <Request ToDir="FTP78"> <TypeA> <fileNumber ID="78" /> </TypeA> </Request> <Request ToDir="FTP79"> <TypeA> <fileNumber ID="79" /> </TypeA> </Request> </Requests>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delete element node from xml file using XML::Twig?
by toolic (Bishop) on Jul 09, 2009 at 17:30 UTC | |
by Anonymous Monk on Jul 09, 2009 at 17:47 UTC | |
by toolic (Bishop) on Jul 09, 2009 at 18:45 UTC |