472,142 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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 2305

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.