[JDEV] Jabberd config file & namespaces

Dave Smith dave at jabber.org
Tue Oct 2 00:15:24 CDT 2001

On Mon, Oct 01, 2001 at 04:04:43PM -0700, Franck Mangin wrote:
>   Is the jabberd configuration file that ships with the distribution a
> valid XML file? 

Pretty much. Otherwise, we couldn't load and parse it. :)

> According to the w3c spec (http://www.w3.org/TR/REC-xml-names/), it
> seems like namespaces cannot contain ':', so a name such as
> jabber:config:jsm would be invalid (xerces for one chokes on
> xmlns:jabber:config:jsm="http://...")

The spec doesn't say anything about not containing ':'..if you look at
the example namespace name (http://ecommerce.org/schema), you'll see
that it has a ':' as a character in the namespace name.

_Any_ parser would choke on your example of: "xmlns:jabber:config...". I
think you probably should have something like: "xmlns=jabber:config".

>   Also, I thought you had to declare a namespace before using it - which
> isn't done in jabber.xml?

Nope. I'm not sure how you would go about declaring a namespace before
using it even... :)

>   I am trying to parse the configuration file using xerces/xpath and
> those namespace issues are causing trouble - if I fix them jabberd won't
> start anymore...

My guess is that you have a mangled XML file -- are you using the
default XML that comes with 1.4.1? If so, can you post some debug/stack
dump that you are getting?

Hope that helps...


More information about the JDev mailing list