From: David Pollak Date: 2006-04-22T00:21:13+09:00 Subject: Re: XML parser with file names and line numbers ------=_Part_31373_16010604.1145632866997 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. On 4/21/06, zdennis wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Robert Klemme wrote: > > 2006/4/21, David Pollak : > > > >>Howdy, > >> > >>Is there a Ruby XML parser that includes the file name and line number > for > >>elements? > > > > > > What exactly do you mean by that? AFAIK there is no place to store > > this info in DOM so... > > It seems like this would be possible with a SAXParser when you're scannin= g > the document to be able to grab what lineno an element > is on when it starts an element. > > Zach > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFESM+EMyx0fW1d8G0RAk7tAJ4m+U76yd9Mrb3XQYR+lQ8HqFaHpwCeNmYp > m1EsIM36/YOm5JHD6Ke1f9E=3D > =3DKWbP > -----END PGP SIGNATURE----- > > ------=_Part_31373_16010604.1145632866997--