Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] c'tor Builder( org.xml.sax.XMLReader [...] )

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] c'tor Builder( org.xml.sax.XMLReader [...] )
  • Date: Mon, 8 Feb 2010 05:40:14 -0500

On Sun, Feb 7, 2010 at 4:33 PM, Michael Ludwig <milu71 AT gmx.de> wrote:
> The documentation for those constructors of nu.xom.Builder that take an
> instance of org.xml.sax.XMLReader as first parameter promises that the
> resulting builder will read data from the specified parser object.
>
> Not quite true.
>
> Maybe the documentation should reflect the fact that XOM will replace an
> existing ContentHandler and put its own ContentHandler in place. So if
> the user wants to control the parsing process, he should supply an
> XMLFilter, not an XMLReader.
>


I'm not sure if this is a misunderstanding, a documentation bug, or an
implementation bug. Do you have a test case that demonstrates the
divergence between what you think should happen and what does happen?

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page