void () { XmlNSDescriptor NSDescriptor = createDescriptor( "<!ENTITY % att1 \"id1 D #IMPLIED\"> <!ENTITY % att2 \"id2 D #IMPLIED\"> <!ELEMENT a ANY> <!ATTLIST a %att1; %att2; "); final XmlTag tag = tag("a"); XmlElementDescriptor elementDescriptor = NSDescriptor.getElementDescriptor(tag); final XmlAttributeDescriptor[] attributes = elementDescriptor.getAttributesDescriptors(tag); assertEquals(2, attributes.length); assertEquals("id1", attributes[0].getName()); assertEquals("id2", attributes[1].getName()); }