Re: Namespace problems

Jason Hunter <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
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/[email protected]
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.