umentHelper 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 namespa
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/
Hi,
I was able to map the xhtml namespace, and it works alright; however,
I've run into an issue. When I do DocumentHelper.createElement it gives
the element an empty namespace. I'd like for all my elements to be of
the same namespace, but I just can't figure out how. Is there ANY way
to re
Why it fails is because of the following lines in the XHTML DTD:
http://www.w3.org/1999/xhtml'
>
This will add a default namespace to your XML, so your XML in reality
looks like:
http://www.w3.org/1999/xhtml";>
Title
body{
background: blue;
Alle 20:01, giovedì 15 dicembre 2005, Evan Kirkconnell ha scritto:
> Sorry, I don't mean to spam the list, but does anyone know why the
> doctype would cause the "/html/body" and "/html/head" XPATH expressions
> to break?
> They both work without the doctype.
I think it's because you must have a r