Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] dtd problems

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] dtd problems
  • Date: Mon, 20 Sep 2004 09:48:31 -0400

luca wrote:

Elliotte,

using this does not seem to fix the prolem either:

StreamingImgLister sil = new StreamingImgLister();
Builder builder = new Builder(false,sil);

am I misunderstanding the purpose of the false
parameter to the constructor?


Passing false to this constructor merely turns off validation, which XOM doesn't do by default anyway. XOM will still read the external DTD subset because DTDs do more than merely validate. The single biggest issue is defining entity references. XOM cannot handle documents that contain undefined entities. There are use cases for not resolving entities, but this is on the wrong side of XOM's 80/20 split.

--
Elliotte Rusty Harold
elharo AT metalab.unc.edu




Archive powered by MHonArc 2.6.24.

Top of Page