Hi all,
I have a problem where I need to retrieve common data(based on @x) across nodes and consolidate them under a single node(<b>). Let me elaborate with xml. Input XML : <a> <b> <c x="1|2|3|4">5|6|7|8</c> <d>the one</d> </b> <b> <c x="1|2|3|4">5|6|7|8</c> <d>the other one</d> </b> <b> <c x="2|3|4">6|7|8</c> <d>the different one</d> </b> </a> Needs to be converted to <a> <b> <c x="1|2|3|4">5|6|7|8</c> <D> <d>the one</d> <d>the other one</d> </D> </b> <b> <c x="2|3|4">6|7|8</c> <d>the different one</d> </b> </a> Note : the <d> nodes have accumulated under a single <b> node that has the same attribute x. Ideally the input XML would have 100 to 200 such <b> tags. Kindly provide any inputs that would help. Thanks Sai This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
