[JDEV] Re: Re: missing </stream:stream>
Robert Temple
robert.temple at dig.com
Fri Sep 22 14:09:42 CDT 2000
I'm using an eval SAX2 parser from Vivid-Creations. I'm not sure if I'll
be able to keep using it however, since my emails to this company asking to
purchase it have not got responses.
Can you give me a name of a SAX parser that can be feed parts of a XML
document, and still retain states in between?
Every one that I've seen so far has a parse method similar to this,
that only returns once the whole document is parsed, or an EOF is
reached, in which case it throws an Exception:
http://www.megginson.com/SAX/Java/javadoc/org/xml/sax/XMLReader.html#parse(o
rg.xml.sax.InputSource)
I'm able to use a SAX parser by just having it parse in its own
thread.
-Robert
-----Original Message-----
From: Thomas Charron [mailto:tcharron at ductape.net]
Sent: Thursday, September 21, 2000 2:24 PM
To: jdev at jabber.org
Subject: RE: [JDEV] Re: Re: missing </stream:stream>
Quoting Robert Temple <robert.temple at dig.com>:
> Yes, if there is some way to periodically feed a SAX parser data I would
be
> fine. But I haven't found that way yet. If you think I've overlooked
> sometime, please tell me. I'd love to use SAX in that way.
What SAX parser are you using currently? Most (that I've used) SAX based
parsers basically have the ability to parse, and 'parse more', where you can
feed the parser bits of XML at a time. I'm not sure I can see how you could
possibly run Jabber on a SAX parser that didn;t have this capability, due to
the fact that your document never closes untill logoff, so you *BY NATURE*
have
to be able to incrementally parse. It's the same reason why DOM parsers
can;t
work. They don;t give you anything back untill the entire document is
parsed..
---
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used >>
<< and stored in garage. ?>>
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list