[jdom-interest] HAVE to have Namespaces?

Bradley S. Huffman hip at cs.okstate.edu
Mon Oct 13 21:55:47 PDT 2003

setNamespace(Namespace namespace)

But Element defaults to Namespace.NO_NAMESPACE to indicate that it doesn't
have a namespace so you shouldn't have to set one unless you want to.  Did
you happen to extend Element and not call one of the super(...) constructors?


"Dave Bartmess" writes:

> I have an application that will ONLY be on one desktop at a time. But
> from the messages below, it looks like I HAVE to have Namespaces
> declared. Is this true? 
> Exception in thread "main" java.lang.NullPointerException
>    at org.jdom.Element.getQualifiedName(Element.java:314)
>    at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:1055)
>    at
> org.jdom.output.XMLOutputter.printContentRange(XMLOutputter.java:1178)
>    at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:1098)
>    at org.jdom.output.XMLOutputter.output(XMLOutputter.java:566)
> If so, how do I add a Namespace to it? I have no clue about namespaces,
> having created almost exclusively server-style and standalone
> applications... Can someone point me to a newbie tutorial for
> namespaces?
> Thanks!
> -- 
> David A. Bartmess
> Software Configuration Manager / Sr. Software Developer
> eDingo Enterprises
> http://edingo.net
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost
> .com

More information about the jdom-interest mailing list