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: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] need ideas for HTML manipulation
  • Date: Thu, 05 May 2005 16:24:36 +0200

what about this transformation:

<body>
fdfd
</body>

into:

<body>
<table><tr><td width="200">
fdfd
</td></tr>
</table>
</body>

?
the javadocs for NodeFactory tell me that I can discard an element (but not the content) by returning null
in startMakingElement. I can suppress or modify a tag or add tags before/after the closing tag
if I override the Nodes() returned by FinishMakingElement(), but I don't iunderstand how to achieve the transformation above...

Luca





Archive powered by MHonArc 2.6.24.

Top of Page