473,387 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2376

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mia456789 | last post by:
I hv a mysql db in my RH linux , there is a very large table in the db , the file size is about 2G , how can I split the file into two files - two files physically and one file logically ? is ...
9
by: Aguilar, James | last post by:
I know that one can define an essentially unlimited number of classes in a file. And one can declare just as many in a header file. However, the question I have is, should I? Suppose that, to...
2
by: Jen | last post by:
Trying to take one table in access and split it into multiple excel files(using an excel template); and then email based on email addresses in Table2; Of course, I would like to do all of this...
2
by: kumud | last post by:
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...
2
by: Jeff | last post by:
Hello all! I created a successful program that reads data from a reliable tab-delimited file - or so I thought. After getting everything to work with small files, I changed the input to a larger...
6
by: Vlado Jasovic | last post by:
Hello, We're developing application in VS2005 using vb.net. Our application exe file is ~20mb when compiled. Recently, we have developed auto-update feature that goes on our web-site,...
1
by: Query Builder | last post by:
I have one of our production Accounting Databases starting from 2 GB now grown into a 20 GB Database over the period of a few years... I have been getting timeouts when transactions are trying to...
6
by: Stan | last post by:
I am working on a database in ACCESS 2003. This is a simple DB with only one table. I have split the DB so I can upgrade and debug the front end before installing on my clients' computer. I used...
7
by: John Smith | last post by:
Hi, I am very new to C# and NET framework. I am trying to hash (using MD5CryptoServiceProvider) a source that is split into several files. Now when the source is in one file I can produce the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.