[JDEV] XML Requirements for Parsing Jabber Messages

Tony Cheung dragonman at asiayeah.com
Sat Nov 2 18:27:20 CST 2002


Hi All,

I would like to know if there is any specific requirement for parsing 
Jabber messages in XML? I would either make my own XML parser or use a 
third party XML parser.

Specifically,

1) Can I transmit BIG5 encoded strings in the XML messages? Or should I 
  only use unicode with UTF8 encoding?

2) Is there any requirement for name entities?

3) Is there any requirement for handling DTDs?

4) Does Jabber require processing instruction?

5) What about XML comments or CDATA sections?

6) Do we need strict XML validation?

I understand Jabber wants Jabber clients to be extremely simply. But I 
think XML parsing is not a simple stuff alone, unless we are only using 
a subset of XML syntaxes or we simply use a full-blown XML parser. 
However, some handheld devices, such as J2ME, it may be always be 
feasible to get a full-blown XML parser.

Thank you very much. Any idea?

Best Regards,
Tony Cheung





More information about the JDev mailing list