Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Location-aware Elements

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] Location-aware Elements
  • Date: Sat, 7 Jan 2012 20:53:19 -0500

On Sat, Jan 7, 2012 at 2:48 PM, Olivier Lefevre <lefevrol AT yahoo.com> wrote:
> I'd like to have location information in the final Document.
> This is necessary if you are going to do post-processing and
> maybe throw your own errors. Someone enquired in 2005 about
> this and was rebuffed. Has anything changed since? How would
> one go about doing this today? I don't care if that requires
> me to write a custom NodeFactory.

What location information do you want? Line number and column number?
If so that's not really possible. SAX does not reliably provide that
to XOM.

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page