xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] need ideas for HTML manipulation
- 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: Thu, 05 May 2005 10:38:42 -0400
Luca Passani wrote:
what about this transformation:
<body>
fdfd
</body>
into:
<body>
<table><tr><td width="200">
fdfd
</td></tr>
</table>
</body>
?
If that's really all you have, there are several ways. But probably what you want is to just do all your work in finishMakingElement for the body element. First build the table element you want with all its children. Then detach the original children from the body element, insert your table child, and return new Nodes(element).
In other words, you just modify the element passed to finishMakingElement and then return it wrapped inside a Nodes object.
--
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
-
[XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
- Re: [XOM-interest] need ideas for HTML manipulation, Wolfgang Hoschek, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Elliotte Harold, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Elliotte Harold, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/05/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Elliotte Harold, 05/05/2005
- Re: [XOM-interest] need ideas for HTML manipulation, Luca Passani, 05/05/2005
- Re: [XOM-interest] need ideas for HTML manipulation, Elliotte Harold, 05/05/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Elliotte Harold, 05/05/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/05/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
- Re: [XOM-interest] need ideas for HTML manipulation, Elliotte Harold, 05/05/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Elliotte Harold, 05/04/2005
-
Re: [XOM-interest] need ideas for HTML manipulation,
Luca Passani, 05/04/2005
Archive powered by MHonArc 2.6.24.