Hi ... I am not able to parse an XSchema to get the attributes of an element ...
the schema file is <xs:schema xmlns="http://www.nyse.com/mks/analytics" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mks="http://www.nyse.com/mks/analytics" targetNamespace="http://www.nyse.com/mks/analytics" elementFormDefault="qualified"> <xs:complexType name="SeriesType"> <xs:sequence> <xs:element name="TimePeriodClass" type="xs:string"/> <xs:choice> <xs:element name="Data"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> </xs:complexType> </xs:element> </xs:choice> </xs:sequence> <xs:attribute name="class" type="xs:string"/> <xs:attribute name="name" type="xs:string"/> </xs:complexType> <xs:element name="PriceSeries"> <xs:complexType> <xs:complexContent> <xs:extension base="SeriesType"> <xs:attribute name="BOID" type="xs:string" use="prohibited" fixed="execSetOverlay"/> <xs:attribute name="QueryID" type="xs:string" use="prohibited" fixed="SymbolDate"/> <xs:attribute name="BOType" type="xs:string" use="prohibited" fixed="Executions"/> <xs:attribute name="Symbol" type="xs:string" use="required"/> <xs:attribute name="Date" type="xs:date" use="prohibited"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> </xs:schema> I load and parse the file with the following lines fo java code : String ANALYTICS_NS_URI = "http://www.nyse.com/mks/analytics"; XSModel appModel = schemaLoader.loadURI("Test.xsd"); XSElementDeclaration elementDcl = getElementDeclaration("PriceSeries", ANALYTICS_NS_URI); XSObjectList attList = ((XSComplexTypeDecl) vbDefElement.getTypeDefinition()).getAttributeUses(); the attList does not contain all 5 attributes of "PriceSeries" element ... it only returns 3 attributes. any ideas ? Thank You, Nuno --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]