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,
In reply to set parent for some successive elements using XML::Twig by aakikce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |