This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes custom streaming of xml from socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "custom streaming of xml from socket" Watch "custom streaming of xml from socket" New topic
Author

custom streaming of xml from socket

DeepakN kumar
Greenhorn

Joined: Apr 14, 2012
Posts: 27
I am trying to use the streaming xml feature of Saxparser for parsing the xml from a socket.Since streaming helps in parsing the xml as and when it is available instead of waiting for the entire xml to get buffered, i hope this is the prefered solution when dealing with socket stream.

I am using java 1.5 and using the parser provided by java 1.5( i think Xerces parser). In the code is am doing the following to activate streaming where StreamingCharFactory is a class created which extends org.apache.xerces.readers.DefaultReaderFactory.


The issue is that the existing parser provided by Java 1.5 doesn't recognise the method : and gives error. Can any one tell me what should be the version of the Xerces parser that i should be using here that support method and

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom streaming of xml from socket
 
Similar Threads
No ClassDefFoundError
Parsing input from a string using JAXP, Xerces 1.4.1 with Visual Age
parsing XML document against DTD!!!
Problems parsing a string with SAX
xerces : Parsingproblem when "include" one or more Schema in another