[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

get line numbers in REXML'S StreamListener

Robert.Koepferl

11/7/2003 1:18:00 PM





Hi,
I'm using the StreamListener Mix-In from REXML to parse a file.
I want to stuuply line numbers as error information. Where do I get them?


1 Answer

ser

11/7/2003 7:14:00 PM

0

Robert.Koepferl@de.gi-de.com wrote in message news:<OFE0CE3617.921FE343-ONC1256DD7.00485647@gdm.de>...
> I'm using the StreamListener Mix-In from REXML to parse a file.
> I want to stuuply line numbers as error information. Where do I get them?

If an error occurs in parsing, that information (as REXML's best
guess) is in the parse exception. Line number information isn't
currently available any other way.

--- SER