void () { XmlFile file = (XmlFile)createFile("test.xml", "<!DOCTYPE greeting SYSTEM \"hello.dtd\">"); XmlDocument document = file.getDocument(); XmlProlog prolog = document.getProlog(); XmlDoctype doctype = prolog.getDoctype(); String url = doctype.getDtdUri(); assertEquals("testDtdUrl1", "hello.dtd", url); }