> return  parser.getDocument();
Ooops, 
node = parser.getDocument();
..should be here.
Sorry, in reality the code is in two methods.

I also tried various document modifications, like:

root.setAttribute("xmlns:html", "http://www.w3.org/1999/xhtml";);
..
root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:html";, 
  "http://www.w3.org/1999/xhtml";);
..
body.setPrefix("html"); // traverse to all elements

..in many variants but I always end up with  NAMESPACE_ERR exception 
or the same, un-prefixed output :(


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to