I was going to do something along those lines, but I ended up using my own 
doctype and removing the namespace declaration.  Everything is all pretty and 
namespaceless.  I wouldn't mind switching the doctype to a standard xhtml 
doctype when I serialize.  Is that possible?  If not, do you know if there are 
implications as far as browsers go?  XPATH really needs to have a definable 
default namespace, or xhtml doctype needs to not have a "fixed" namespace or 
something...  

As for DOM4J, it might be nice to be able to set a default namespace for 
createElement in DocumentHelper and DocumentFactory.  Just a thought.

Thanks for the help,
--Evan

----- Original Message -----
From: Edwin Dankert <[EMAIL PROTECTED]>
Date: Wednesday, January 25, 2006 2:26 pm
Subject: Re: [dom4j-user] Re: Something wrong with XPATH

> You'll have to specify the namespace when creating your element.
> 
> Have you tried something like this?
> 
> Namespace html = Namespace.get( "html","http://www.w3.org/TR/REC-
> html40");Element element = DocumentHelper.createElement( 
> QName.get( "table", html));
> 
> Regards,
> Edwin
> --
> http://www.edankert.com/
> ????¨¥??¢{(­?*eºy?h? ­?º.?h??®??¦±+h¤:0?Zv??????w­?«fjG¬±?§?*.®Z 
> ~)^±«j?²?~)?°y°??



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to