void () { XmlFile file = createFile("<root><a></a><b></b><a></a></root>"); XmlNSDescriptor descriptor = createDescriptor(file); XmlTag rootTag = file.getDocument().getRootTag(); XmlElementDescriptor element = descriptor.getElementDescriptor(rootTag); XmlElementDescriptor[] elements = element.getElementsDescriptors(rootTag); assertEquals(2, elements.length); assertEquals("a", elements[0].getName()); assertEquals("b", elements[1].getName()); }