[JDEV] Parsing of jabber.xml

Robert Norris rob at cataclysm.cx
Mon Jan 6 19:57:37 CST 2003

> > 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.
> I'm certainly no XML expert, but that doesn't seem right to me.  In both
> of the provided examples, <jabberd:cmdline/> is a child of <host/>.  In
> both cases, <jabberd:cmdline/> has an attribute named 'flag' with a
> value of 'h' and an element value of 'servername'.  While there is
> additionally whitespace in the value of the <host/> element, that really
> shouldn't make much difference.

<jabberd:cmdline/> is actually a replacement operator. For the default
case (where there is no -h switch provided on the command line), the
actual XML becomes:


which is distinctly different from:



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/5d0cf6d0/attachment-0002.pgp>

More information about the JDev mailing list