void () { final XmlNSDescriptor NSDescriptor = createDescriptor( "<!ENTITY % types \"fileset | patternset \"> <!ELEMENT project (target | taskdef | %types; | property )*> " + "<!ELEMENT target><!ELEMENT taskdef><!ELEMENT fileset><!ELEMENT patternset><!ELEMENT property>"); XmlTag projectTag = tag("project"); final XmlElementDescriptor elementDescriptor = NSDescriptor.getElementDescriptor(projectTag); final XmlElementDescriptor[] elements = elementDescriptor.getElementsDescriptors(projectTag); assertEquals(5, elements.length); }