[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Large amount of XML data over a network socket

Posted on 2011-10-19
Medium Priority
Last Modified: 2012-05-12
Hi all,
This seems like a simple task, but it is giving me problems that do not make sense to me.  Rather than go over the history of this problem I will ask how it is done.

I have a client who is constructing an XML document for transmission over a TCP socket to a server.  The XML structure is very simple, and there are less than a handful of XML tags, however the data within the XML document is huge.

I want to have the server read the XML and process the document when the entire thing has arrived.

How can I do this?
Thanks very much.
Question by:edc
  • 2
LVL 86

Accepted Solution

CEHJ earned 2000 total points
ID: 36994692
You should probably try to do it using pull-parsing techniques. This will limit potentially vast resources being used


Author Closing Comment

ID: 37041793
My apologies for taking so long to give my attention to this question.  I'm afraid I was out of the country and out of communications.  I found that the key problem was that I was not using a buffered stream reader.

Thanks very much for your help.
LVL 86

Expert Comment

ID: 37044311

>>I was not using a buffered stream reader.

That will help (a little)

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question