Hi,

I am trying to read multiple XML files from a socket using JAXP 1.3 / Xerces-J 2.7.1.

 
Unfortunately the KeepSocketOpen example in Xerces2 Socket Sample ( http://xerces.apache.org/xerces2-j/samples-socket.html) does not work for me, because I have no control over the other side of the socket.

 

Also FAQ-11 of Xerces1 ( http://xerces.apache.org/xerces-j/faq-write.html#faq-11) does not help anymore, because the StreamingCharFactory class used there to prevent buffering cannot be used in Xerces2 (cannot compile the class).

 

I have been trying to find a solution to this for a while now, but I could come to an end.

 

Can anybody provide a simple example on how to read multiple XML docs from a socket InputStream?

 

Thanks a lot,

Massimo

Reply via email to