• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

custom streaming of xml from socket

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic