Grrr. I mentioned before that hpricot downcases element names when parsing HTML, but it does when parsing XML as well. It doesn't claim to be a conforming parser, but it makes it a little less useful.
hpricot downcases element names
The title says it all really. I'm using hpricot for the first time, and the page I'm scraping has quaint uppercase HTML elements, shouting its TABLEs at me. It took me quite a while to work out that I didn't have to shout at hpricot.