[jdom-interest] Namespace problems

Jason Hunter jhunter at servlets.com
Fri Nov 16 15:08:07 PST 2007


It's working just fine.  You don't say how it's "not working".  I'm 
guessing when you look at the element you don't see a namespace prefix.
That's because you assigned that URI to the default element namespace, 
which is printed without a prefix.

-jh-

Ramo At Skuff wrote:
> Hi,
> 
> i wanted to add the xmlns="http://www.w3.org/1999/xhtml" namespace to my
> "root" <html> tag like this:
> 
> Namespace ns = Namespace.getNamespace("http://www.w3.org/1999/xhtml");
> 		
> 		
> root = new Element(HtmlElementsDef.getHTML_STR(), ns);
> 
> 
> 
> This is not working. I'm getting no error messages or anything else. All
> what i want is to add the namespace to the html tag,
> 
> 
> Any ideas?
> 
> Best regards
> Ramo
> 		
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com


More information about the jdom-interest mailing list