I'm trying to retrieve attributes declarations from an 'XSModel' instance using 'getAttributeDeclaration' method but null is return. For example, I can't get 'birthday' and 'adn' declarations.
The part of the schema is (all the types are declared in the xsd) : <?xml version="1.0" encoding="iso-8859-1"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> ... <xs:complexType name="entityType" mixed='true'> <xs:sequence> <xs:element name="name" minOccurs="1" maxOccurs="1" type="nameType"/> <xs:element name="comment" type="commentType" default=""/> </xs:sequence> <xs:attribute name="id" type="xs:ID"/> </xs:complexType> <xs:element name="dog"> <xs:complexType> <xs:complexContent mixed='true'> <xs:extension base="entityType"> <xs:sequence> <xs:element name="colour" minOccurs="1" maxOccurs="1" type="xs:string"/> <xs:complexType> <xs:sequence> <xs:element name="dogShow" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="result" type="xs:byte"/> <xs:attribute name="show" type="xs:IDREF"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="adn" type="xs:string"/> <xs:attribute name="birthday" type="birthdayType" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> Any ideas would be appreciated. Thanks, David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
