From: David Pollak Date: 2006-04-22T00:46:06+09:00 Subject: Re: XML parser with file names and line numbers ------=_Part_31669_11462013.1145634364036 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Zach, Yep... libxml does the trick with: XML::Parser.default_line_numbers =3D true ... element.line_number element.doc.filename Thanks, David On 4/21/06, zdennis wrote: > > David Pollak wrote: > > It is possible with a SAX parser in Java, but the SAX parser in rexml > does > > not include file/line information in the "PullEvent" as far as I can > tell. > > > > I guess rexml is the only XML parser currently under development for > ruby. > > > > No, ruby-libxml is in development. I know because I am an active > "talker" on the ruby-libxml mailing list. > > http://rubyforge.org/projects/libxml/ > > I switched from REXML to libxml because libxml is blazing fast. > > Zach > > ------=_Part_31669_11462013.1145634364036--