in reply to Search and Replace for XML
Rather than reinventing the wheel, use one of the many available CPAN modules that know how to parse and generate (read and write) XML. Look in the XML namespace on CPAN.
Start by writing a small program to locate the author and afiil nodes in a stripped-down version of your a.txt and print what it finds. If you run into difficulties, show us
and you will get lots of help from Perlmonks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search and Replace for XML
by srprabu (Initiate) on Apr 29, 2008 at 04:10 UTC | |
by GrandFather (Saint) on Apr 29, 2008 at 04:37 UTC | |
by srprabu (Initiate) on Apr 29, 2008 at 04:28 UTC |