[JDEV] Parsing of jabber.xml
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
> <jabberd:cmdline flag='h'>servername</jabberd:cmdline>
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
Size: 189 bytes
Desc: not available
More information about the JDev