Implement a basic mapper

Putting this up for review. I want to do some minor cleanup and do the inline documentation before merging this.
Is this method and `Parser#attribute?` only applicable to XML? (I'm already thinking about spending some time churning away on a JSON parser, and trying to figure out how hashes should be parsed.)