473,396 Members | 1,766 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,396 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...
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>
</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>
</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>
</Data>
</SynchronizationObjectsDocument>
Nov 20 '05 #1
2 2450
* "kumud" <ku****@msn.com> scripsit:
How to Split a XML file to multiple small XML Files


Have a look at the classes in the 'System.Xml' namespace.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Thank you for the reply... I looked at the System.XML class however code I
have implemented does not look good... I am new to this so any input/insight
will be very valuable for me.
Kumud

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "kumud" <ku****@msn.com> scripsit:
How to Split a XML file to multiple small XML Files


Have a look at the classes in the 'System.Xml' namespace.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

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

Similar topics

0
by: kumu | 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...
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: 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...
1
by: Jeremy | last post by:
I have an xml file (sample below) that is massive. hundreds of megs maybe thousands. I need to split it up into multiple files so each file gets a copy of the header element and sub elements and...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.