Fix bugs in parser. Add more unit tests.
Move XML parsing functionality to a new class DDSTopologyParserXML.