Results 1 to 3 of 3
  1. #1
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    8

    Default XML through a socket

    I'm trying to parse XML thought a socket, but I'm running into a problem...I'm using the SAXParser to parse the data. The problem is that the parse method doesn't end until the inputstream is closed or the file ends. It seems the parser was made to read from a file. When an exception is thrown, the inputstream is closed, too. Is there a way to end the parse method without closing the inputStream and Socket?

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    Which way do your XML look like? I think an XML Document always have an EOF to indicate the XML String has ended?
    Please post the code where you read from the socket into an inputstream

  3. #3
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

Similar Threads

  1. How to handle socket Exception
    By mayank0512 in forum Networking
    Replies: 14
    Last Post: 12-21-2010, 11:31 PM
  2. Socket
    By vortex in forum New To Java
    Replies: 2
    Last Post: 05-25-2008, 06:41 AM
  3. Programming Socket Question
    By paul in forum Networking
    Replies: 1
    Last Post: 07-30-2007, 07:26 PM
  4. send files through socket
    By bbq in forum Advanced Java
    Replies: 1
    Last Post: 06-05-2007, 02:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •