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: Luca Passani <passani AT eunet.no>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] need ideas for HTML manipulation
  • Date: Thu, 05 May 2005 01:24:03 +0200

Elliotte Harold wrote:


What do you want to produce as your ultimate result? It sounds like a job for XSLT to me, possibly driven via TagSoup and XOM, or maybe TagSoup and Saxon, or something similar. But it really depends on exactly what you're trying to do.

But god help you, whatever you do, don't even think about using regular expressions for this!

I am doing good things by subclassing NodeFactory so far. If it works, I am very happy.

One question for you:

in finishMaking Element() I have:


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?

Thanks

Luca






Archive powered by MHonArc 2.6.24.

Top of Page