Please help to resolve the below error for the XSD as i'm a newbie to xsd
Sample SOAP response XML
<ACCOUNTDETAILS>
<STATUS></STATUS>
<RESPONSE></RESPONSE>
<ACCOUNTID>
<DETAILS>
<NAME></NAME>
<CATEGORY></CATEGORY>
<LASTMODIFIED></LASTMODIFIED>
</DETAILS>
</ACCOUNTID>
</ACCOUNTDETAILS>
XSD generated
<xsd:element name="AccountDetailsResponse">
<xsd:element name="ACCOUNTDETAILS" type="account:Account">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="STATUS"/>
<xsd:element type="xsd:string" name="RESPONSE"/>
<xsd:element name="ACCOUNTID">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="DETAILS">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="NAME"/>
<xsd:element type="xsd:string" name="CATEGORY"/>
<xsd:element type="xsd:string" name="LASTMODIFIED"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:element>
XSD ERROR:
s4s-elt-must-match.1: The content of 'AccountDetailsResponse' must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)). A problem was found starting at: element.
Thanks in advance
<xsd:element>
within<xsd:element>
like you do with AccountDetailsResponse and ACCOUNTDETAILS. What would like to do exactely? Define an element type? Use a reference toward another element definition? – potame