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