Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] location of elements?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Frankpeter Lohse <frape AT frapelo.de>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] location of elements?
  • Date: Mon, 30 May 2005 08:34:54 -0400

Frankpeter Lohse wrote:
Hi all,

I would like to show the location (row, column) of XML elements in error messages while dealing with the XOM XML tree. Creating my own NodeFactory doesn't help because I don't have access to the XOMHandlers Location object.


XOM doesn't provide that. Row-columns are two layers below the information XOM exposes. That's down in the lexical layer. XOM exposes the structure layer. I know it would be useful for error reporting, but offering it would require contorting the API far too much, not to mention writing my own SAX parser.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page