Added a simple DOM for dealing with XML documents.