[JDEV] Parsing of jabber.xml

Van Gale vangale at fastmail.fm
Tue Jan 7 00:42:51 CST 2003


On Mon, 6 Jan 2003 19:05:53 -0600, "Jamin W. Collins"
<jcollins at asgardsrealm.net> said:

> > > 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>"
> > 
 
> While that is technically correct, the value of <jabberd:cmdline/> and
> it's atrribute is the same in each, right?  Additionally, in both
> <jabberd:cmdline/> is a child of <host/> in each, right?

James, I guess what you're missing is that the name of the server comes
the content of the <host> element, not <jabberd:cmdline>.  XML will not
strip the whitespace because, obviously, the application might want it. 
In this case we don't want it (leading and trailing whitespace make no
sense for a servername), but it's not being stripped by jabberd either. 
Solution: don't put whitespace inside your <host> element :)

Van

-- 
  Van Gale
  vangale at fastmail.fm



More information about the JDev mailing list