Brad, You may want to try a "pull-parser", which is perfect for streaming XML documents. You can find the API and implementations at:
http://www.xmlpull.org/ I use XPP3, which works very well. Pull parsing is as fast as SAX, but much easier to program with for streaming xml. It's also possible to configure SAX parsers to work in streaming mode. I'd recommend checking out Iain Shigeoka book, "Instant Messaging in Java: The Jabber Protocols", which includes info on how to do this (and a lot of other very useful Java/Jabber info). http://www.amazon.com/exec/obidos/ASIN/1930110464/ Regards, Matt > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On > Behalf Of brad cooper > Sent: Thursday, October 10, 2002 10:07 AM > To: [EMAIL PROTECTED] > Subject: [JDEV] New to Client Side Jabber Programming. > > > Hello all, > I'm looking to learn more about the jabber protocol. > I want to start of making a simple java based client > that connects to a server and sends a login message. I > would like to write this in pure java not using any > java/jabber libs, so i can learn. I have the sockets > connected and am now at the point of over-coming the > (EOF) stream problem. I would like to be able to hook > my JAXP XML parser right 2 the stream, but this seems > impossible because my parser wants the whole document > upfront. Any suggestions on over-coming this limitation would > be helpful (another parser? custom built stream filter then > send to a parser?) > > Thanks in advance, > Brad > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
