[jdev] What to do with Invalid XML Characters

Jonathan Chayce Dickinson chayce.za at gmail.com
Sun Aug 12 14:08:50 CDT 2007


One of two things are happening (if you didn't write the server
yourself):
      * Server only supports escaping as per the JID JEP recommendation
        (JID escaping). The server encounters an error and, as per
        recommendation, drops your connection.
      * The server assumes that &#1 is not valid, it may be seeing
        escaped/plain text as the same thing.
      * Try  the semicolon is important for some parsers. (HTML is
        forgiving/error tolerant, XML is not).

Look at the the element in the error, tell me what it is saying. Best to
IM me instead of filling up the mailing list.

On Sun, 2007-08-12 at 21:00 +0200, Norman Rasmussen wrote:
> On 8/12/07, Jonathan Chayce Dickinson <chayce.za at gmail.com> wrote:
> > I hate to cause a fluff, but could you escape them?
> 
> How? (and in which layer should it be done)
> 
> If I try and send &#1; to my server it drops the connection, so that's no good.
> 
-- 
Jonathan Dickinson
Developer [Xeer Technology]

email:      chayce.za at gmail.com
jabber:     chayce.za at jabber.org
twitter:    Moitoius

Principle will kick us all in the butt one day. If you have principle,
you have all you will ever need.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070812/47796696/attachment-0002.pgp>


More information about the JDev mailing list