removed passing a base URL around all the internal methods as it's available as an instance variable
created XmlTestUtils for prettifying and comparing XML documents as canonical strings
added a mostly-dummy test case for XmlTestUtils