[JDEV] New to Client Side Jabber Programming.

brad cooper coobr01 at yahoo.com
Thu Oct 10 10:34:01 CDT 2002


Ty for the quikc responses.

I am currently trying to use crimson parser but
getting the effects of

1) I run the program
2) Seems to hang a bit
3) Givings me the below error messages

org.xml.sax.SAXParseException: End of entity not
allowed; an end tag is missing.
	at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
	at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
	at
org.apache.crimson.parser.Parser2.content(Parser2.java:1837)
	at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
	at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
	at
org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
	at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
	at MyJabberTest.test(MyJabberTest.java:129)
	at MyJabberTest.main(MyJabberTest.java:45)

Would you happen to have a sample of how you
initialize the crimson parser and tie the stream to
the parse method?

Thank you so much,
  Brad


--- Chris Chen <ckchris at idream.net> wrote:
> Actually,
> 
> If you use Crimson with JAXP, it will work.  Crimson
> will support streaming 
> XML.  Xerces does not really support streaming XML..
> However, Xerces2 has an 
> option you can use to enable streaming XML
> processing.  Thus, you have two 
> XML APIs to use and test.
> 
> Thanks,
> Chris
> 
> 
> On Thursday 10 October 2002 07:07, brad cooper
> wrote:
> > 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
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



More information about the JDev mailing list