aakikce has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I want to set parent tag for some successive tags.
My xml file:-
<root> <one>some text</one> <two>some text</two> <three>some text</three> .... .... </root>
I want parent tag for tags <two> and <three> output as
<root> <one>some text</one> <group> <two>some text</two> <three>some text</three> </group> .... .... </root>
I tried with get_xpath. But I can't get grouping the specified successive tags.
thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: set parent for some successive elements using XML::Twig
by GrandFather (Saint) on Apr 27, 2007 at 12:04 UTC |