Hash to XML translation