Refactored Sha1XmlReader and Sha1XmlReader, also redesigning
get_writer() and get_reader() in them.