Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] need ideas for HTML manipulation

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] need ideas for HTML manipulation
  • Date: Wed, 04 May 2005 19:27:06 -0400

Luca Passani wrote:

Nodes nds = new Nodes();
Element basetag = new Element("base");
Attribute bt_attr = new Attribute("href",url);
basetag.addAttribute(bt_attr);
nds.append(basetag);
nds.append(element);
return nds;

this produces:

<base xmlns="" href="http://www.passani.it/i.html"; />

How doI get rid of the xmlns="" string?


Element basetag = new Element("base", "http://www.w3.org/1999/xhtml";);

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page