Given one large XML file such as: <A> <B> <C><D><E E="Eattr"/><F F="Fattr"/><G/></D></C> <C><D><E E="Eattr"/><F F="Fattr"/><G/></D></C> <!-- many more <C> sub-trees --> </B> </A>
I want to create many small XML files consisting of a Root element and the <C> sub-tree. I would like to copy the <C> sub-tree from input to output as a block without having to address the sub-components. I have read the input into a hash using XML::Simple, but don't know how to copy the sub-tree which is also a hash. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/