473,473 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Splitting long XML file into smaller pieces when sending over Network

Hello All!

I have a long XML file that I should transmit to other computer using http.
Problem is that the whole XML Document is too large for one
transmitting.

What is the nicest way to split XML document into smaller pieces e.g. to 10
pieces?

XML document is same kind what comes to itäs tags.

E.g.
<main1>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main1>

<main2>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main2>

<main3>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main3>

continues ...

So, how could I read e.g. one main tag with it's subitems one a time?

Br Jenny

Jun 21 '06 #1
2 1754
just how big is this file??

"Jenny" <Je*****@hotmail.com> wrote in message
news:e7*********@nyytiset.pp.htv.fi...
Hello All!

I have a long XML file that I should transmit to other computer using
http.
Problem is that the whole XML Document is too large for one
transmitting.

What is the nicest way to split XML document into smaller pieces e.g. to
10
pieces?

XML document is same kind what comes to itäs tags.

E.g.
<main1>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main1>

<main2>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main2>

<main3>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main3>

continues ...

So, how could I read e.g. one main tag with it's subitems one a time?

Br Jenny

Jun 21 '06 #2
Hallo,
This could be a difficult task to want to split an universal xml this
way and I recommend you use this approach only when you are using
single schema for all files.
In this case, I thing, it would be better consider splitting stream or
string into pieces and then at the other side merge it together simply.
In the past, i faced similar problem, but we have choosen compression
of files. Now you have even zip compression support in .NET, so this is
probably a way.

Martin

Dave wrote:
just how big is this file??

"Jenny" <Je*****@hotmail.com> wrote in message
news:e7*********@nyytiset.pp.htv.fi...
Hello All!

I have a long XML file that I should transmit to other computer using
http.
Problem is that the whole XML Document is too large for one
transmitting.

What is the nicest way to split XML document into smaller pieces e.g. to
10
pieces?

XML document is same kind what comes to itäs tags.

E.g.
<main1>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main1>

<main2>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main2>

<main3>
<sub1>text</sub1>
<sub2>text</sub2>
<sub3>text</sub3>
</main3>

continues ...

So, how could I read e.g. one main tag with it's subitems one a time?

Br Jenny


Jun 22 '06 #3

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

Similar topics

3
by: SCHWAKS | last post by:
HI ALL, I HAVE GOT A VERY STRANGE PROBLEM WHILE TRANSFERRING DATA OVER INTERNET. ACTUALLY I AM SENDING AND RECEIVING DATA BETWEEN TWO APPLICATIONS USING TCP. WHILE SENDING OR RECEIVING DATA, I...
6
by: Earl Anderson | last post by:
I have a A97/XP applet I've developed for my own use in my department. My boss "suggests" that since I built it, I share it with and instruct the other 6 members of my department on its use. I've...
11
by: MM | last post by:
Hi I have never written any C programs before, but it seems that I need to do so now. Hope some of you out there can spend a few minutes and help me by writing a simple example of something...
4
by: ad | last post by:
I want to send a DataSet to WebService, but the DataSet if too huge(there about 50000 records, and 50 fields every record). My solution is 1.save the DataSet as XML file, 2.zip the XML file. 3....
5
by: z. f. | last post by:
hi, i have a vb.net web application and i make a request using internet explorer to an aspx page. the aspx page size if over 170KB, and the page in internet explorer looks truncated and in the...
7
by: Ed McNierney | last post by:
I'm trying to use ServerXMLHTTP on an ASP (not ASP.NET) page to retrieve large binary data from a remote server. When the request is large (more than a few megabytes), the ServerXMLHTTP page jumps...
2
by: Jenny | last post by:
Hello All! I have a long XML file that I should transmit to other computer using http. Problem is that the whole XML Document is too large for one transmitting. What is the nicest way to...
4
by: nikila | last post by:
Hi, I am trying to split large xml files to smaller xml files using c#.net. can you please provide any sample code for this? I have to split the file if the size is more than 10 MB. Also, xml...
6
by: bleen | last post by:
can someone point me in the right direction here.. I have a script (essentially a giant for loop) that takes about 20 mins to run on my server. I want "split" this process onto a second server...
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
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
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.