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: Olivier Lefevre <lefevrol AT yahoo.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Location-aware Elements
  • Date: Mon, 16 Jan 2012 22:36:30 +0100

On 1/8/2012 2:53 AM, Elliotte Rusty Harold wrote:
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.

Sorry for the delay. Line number would be good enough.

-- O.L.







Archive powered by MHonArc 2.6.24.

Top of Page