469,148 Members | 1,257 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,148 developers. It's quick & easy.

How to Split a XML file to multiple small XML Files

How to Split a XML file to multiple small XML Files
Hello,

I am trying to split a XML file to multiple small xml files in vb.net and am
trying to get the best possible approach to this. Any help on this will be
great... Sample example on what I am trying to do...

Thanks
Kumu
Source XML document
--------------------------
<?xml version="1.0" standalone="yes"?>
<SynchronizationObjectsDocument >
<ApplicationArea>
<DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
<CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
</ApplicationArea>
<Data>
<V_CLI_CLIENTS>
<V_CLI_CLIENT>
<ORU_CODE>CLIENT1</ORU_CODE>
</V_CLI_CLIENT>
<V_CLI_CLIENT>
<ORU_CODE>CLIENT2</ORU_CODE>
</V_CLI_CLIENT>
</V_CLI_CLIENTS>
</Data>
</SynchronizationObjectsDocument>

Should split to two xml documents as below
--------------------------------------------------
<?xml version="1.0" standalone="yes"?>
<SynchronizationObjectsDocument >
<ApplicationArea>
<DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
<CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
</ApplicationArea>
<Data>
<V_CLI_CLIENTS>
<V_CLI_CLIENT>
<ORU_CODE>CLIENT1</ORU_CODE>
</V_CLI_CLIENT>
</V_CLI_CLIENTS>
</Data>
</SynchronizationObjectsDocument>

<?xml version="1.0" standalone="yes"?>
<SynchronizationObjectsDocument >
<ApplicationArea>
<DocId>dea9593b-4c60-4c1a-ab7f-004a4e336ac5</DocId>
<CreationDateTime>2004-05-13T21:31:48-04:00</CreationDateTime>
</ApplicationArea>
<Data>
<V_CLI_CLIENTS>
<V_CLI_CLIENT>
<ORU_CODE>CLIENT2</ORU_CODE>
</V_CLI_CLIENT>
</V_CLI_CLIENTS>
</Data>
</SynchronizationObjectsDocument>
Jul 17 '05 #1
0 2178

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mia456789 | last post: by
9 posts views Thread by Aguilar, James | last post: by
6 posts views Thread by Vlado Jasovic | last post: by
1 post views Thread by Query Builder | last post: by
7 posts views Thread by John Smith | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.