> > 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:
<host>
servername
</host>
which is distinctly different from:
<host>servername</host>
Rob.
--
Robert Norris GPG: 1024D/FC18E6C2
Email+Jabber: [EMAIL PROTECTED] Web: http://cataclysm.cx/
msg08277/pgp00000.pgp
Description: PGP signature
