From: ser@... (Sean Russell) Date: 2004-07-22T22:12:04+09:00 Subject: Re: XML line numbers Martin DeMello wrote in message news:... > I'm using the REXML stream parser to read in an xml file and check the > attributes as I go. If a check fails, I want to print out the line > number in the XML file that contains the offending element - is that > possible? Martin, Check out Source#current_line. Line number support in REXML is limited at the moment, since a "line" for REXML isn't something ending in a "\n", but is something ending in ">". I've been considering ways of counting "\n" lines without imposing a significant performance penalty, but have had little luck. --- SER