After a lot of research, I'm close to writing my own InputSource, as it
sounds like I need to return my own makeStream as a BinMemInputStream, but
it seems like a lot of work for something that I expect must already exist.

I will be receiving XML via a network connection, and would like to pass in
the XML as it is received to a SAX parser.  Using schema validation, this
will let me drop a client if it is not following protocol.

As the XML comes in, it is saved in memory.  I learned about
MemBufInputSource, which works great, but I don't see a way to later add
more XML to parse.

I'm really surprised there isn't already an InputSource of the type I am
looking for, and I can't believe I'm the first to have this need with the
existence of XMPP (which I figure people have been writing clients for ever
since).

Request:
- Please do not refer me to an XMPP library, as I am not writing an XMPP
client
- Please help me to know what my next steps are to create what I need, OR
more preferably, directions to how this is already resolved within xerces.
 I'd rather not have to write my own InputSource.

Reply via email to