[JDEV] Parsing of jabber.xml

Robert Norris rob at cataclysm.cx
Mon Jan 6 15:35:50 CST 2003

> The server is correctly lauched with 
> "<host><jabberd:cmdline flag='h'>servername</jabberd:cmdline></host>"
> BUT NOT with 
> "<host>
>    <jabberd:cmdline flag='h'>servername</jabberd:cmdline>
>  </host>"

The problem is the extra whitespace included in the <host/> element. By
default, XML does not remove whitespace, so you're actually setting the
hostname to be "\n  servername\n" (or perhaps \r\n, not sure), which is
of course invalid.

> Actually, initially i wanted to generate a configuration file for my
> jabber server from a generic jabber.xml, and my parser automatically
> produces xml flow following the second way.

Your generator is broken - the two fragments are not equivalent.


Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20030107/ab816059/attachment-0002.pgp>

More information about the JDev mailing list