From: Peter Szinek Date: 2006-10-06T04:49:04+09:00 Subject: Re: Parse and modify an XML file with REXML jeffnyman@gmail.com wrote: > Greetings all. > > When processing XML, is there a way to check what the previous and what > the next "rows" are? I don't know REXML that much (and using Hpricot anyway ;-) but standard XPath axes ( following-sibling, preceding-sibling ) won't help? The previous node in this case would be self::previous-sibling[1] etc. HTH, Peter http://www.rubyrailways.com