Looks like a perfect task for XML::Rules in the filter mode. Create a new XML::Rules object with style => 'filter' and a custom rule for <REF> tags replacing the _content by the value of the EXT attribute and use the filter() or filterfile() method.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Search and Replace in XML
by Jenda
in thread Search and Replace in XML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |