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