void () { XmlNSDescriptor NSDescriptor = createDescriptor( "<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" + "<xsd:element name=\"purchaseOrder\" type=\"PurchaseOrderType\"/>" + "<xsd:complexType name=\"PurchaseOrderType\">" + " <xsd:attribute name=\"orderDate\" type=\"xsd:date\"/>" + "</xsd:complexType>" + "</xsd:schema>"); final XmlTag tag = XmlTestUtil.tag("purchaseOrder", getProject()); XmlElementDescriptor elementDescriptor = NSDescriptor.getElementDescriptor(tag); XmlAttributeDescriptor attribute = elementDescriptor.getAttributeDescriptor("orderDate", tag); assertTrue(!attribute.isEnumerated()); assertTrue(!attribute.isFixed()); assertTrue(!attribute.isRequired()); assertNull(attribute.getDefaultValue()); }