[JDEV] New to Client Side Jabber Programming.
Matt Tucker
matt at jivesoftware.com
Thu Oct 10 09:38:27 CDT 2002
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: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org] On
> Behalf Of brad cooper
> Sent: Thursday, October 10, 2002 10:07 AM
> To: jdev at jabber.org
> 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
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list