Tuesday, August 02, 2005

 

Splitting XML and retain parent and grand parent info

Splitting XML and retain parent and grand parent info.

Based on some splitting XML using Xpath blog on the Net, I have a new variation of it done.
This blog only split a parent, child structure.

I adapted it to have lower bound and upperbound for the xpath loop.
This way, I can split this xml.
GrandParent1
Parent1
Child1
Child2

Into 2 xml files:
GrandParent1
Parent1
Child1

GrandParent1
Parent1
Child2

This just recently helped me to batch some Covast EDI (will be explained in another post) with a very strict requirement.

I will put the source code on soon.

Comments:
I also want to do this.
Can u tell me how it can be done???
Thanks in Advance
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?