Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] remove all comments

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 AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] remove all comments
  • Date: Thu, 11 Nov 2004 07:45:47 -0500

luca wrote:

is there a smart and elegant way to traverse a document
and remove all comments?


Do you really want to traverse it? Why not just build the document without comments by using a custom node factory that never includes comments in the first place?



--
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