dendenners
Programmer
Hi there,
I want to parse xml from an incoming socket stream. I want my parser to be able to respond individually to discrete xml documents arriving on the same socket (i.e. I can't use the close() method to decide when and where an xml document actually ends). I think the only way of doing this is subclassing the InputStream classes read(byte[], int, int) method to check for the XML end document tag, and manually return -1 at the point where it is encountered. However the more I look at this implementation ,the more complicated it seems. Would anyone either have
a)an example of of the implementation I am trying;
b) a better way of reading and responding to multiple xml docs on one stream.
Thanks a lot
Denis
I want to parse xml from an incoming socket stream. I want my parser to be able to respond individually to discrete xml documents arriving on the same socket (i.e. I can't use the close() method to decide when and where an xml document actually ends). I think the only way of doing this is subclassing the InputStream classes read(byte[], int, int) method to check for the XML end document tag, and manually return -1 at the point where it is encountered. However the more I look at this implementation ,the more complicated it seems. Would anyone either have
a)an example of of the implementation I am trying;
b) a better way of reading and responding to multiple xml docs on one stream.
Thanks a lot
Denis