void () { XmlFile xmlFile = (XmlFile)createFile("test.xml", "<!DOCTYPE tv [ <!ELEMENT tv (date)*> <!ELEMENT date (#PCDATA)> ]> <tv></tv>"); final XmlTag tag = xmlFile.getDocument().getRootTag(); assertNotNull(tag); final XmlElementDescriptor desc = xmlFile.getDocument().getRootTagNSDescriptor().getElementDescriptor(tag); assertNotNull(desc); final XmlElementDescriptor[] elements = desc.getElementsDescriptors(tag); assertEquals(1, elements.length); assertEquals("date", elements[0].getName()); }