Large amount of XML data over a network socket

Posted on 2011-10-19
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
    LVL 86

    Accepted Solution

    You should probably try to do it using pull-parsing techniques. This will limit potentially vast resources being used
    LVL 1

    Author Closing Comment

    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


    >>I was not using a buffered stream reader.

    That will help (a little)

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now