Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Namespace problems

Jason Hunter

2007-11-16

Replies:

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@(protected)
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.