Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Builder argument swap

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT cs.okstate.edu>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Builder argument swap
  • Date: Mon, 22 Mar 2004 10:45:06 -0600

Elliotte Rusty Harold writes:

> My thought is that the File object provides its own base URI. If you
> pass a File object the base URI will be set on the resulting
> document. This isn't true for a plain input stream created from a
> file. Plus, I'd rather not ask the user to specify a file URI if they
> don't really want to change the location. file URIs are very tricky
> and platform dependent, and it's easy to get them wrong. I'm not sure
> the File.toURL() method actually does get them right, but I suspect
> it does a better job than mot users are likely to do by rolling their
> own. Since the most common case is that the base URI is the URI of
> the file itself, that's what XOM supports.

Speaking of tricky things, would there be a reason for an application to
set the base uri, as opposed to it only being set in Builder?

Brad




Archive powered by MHonArc 2.6.24.

Top of Page