Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Base URIs

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Laurent Bihanic <laurent.bihanic AT atosorigin.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Base URIs
  • Date: Thu, 26 Sep 2002 10:00:31 +0200

Elliotte Rusty Harold wrote:
How will the Serializer deal with base URIs? It can't use getBaseURI() if this method resolves the URI using the parent's. It'll need direct acces to the actual string value (possibly null or relative).

That's easy. Since Serializer is in the nu.xom package I can expose the extra information through a package-protected method or field as necessary.

IMHO, relying on package-protected access is a bad idea. We have to keep in mind the problems JDOM always had with inputters and outputters: Almost every field and method has become public because the default outputters (SAX or XML) needed to be derived to support specific use cases.
We need to find a way to either ease subclassing of these or prevent it by using "pluggable behaviour classes" like TextWriter.

Laurent





Archive powered by MHonArc 2.6.24.

Top of Page