how to declare a string element with an attribute

wxdqz

New Member
instance

<address addressId="5">Home</address>


schema

<element name="address" type="string">
<complexType>
<attribute name="addressId" type="integer" />
</complexType>
</element>


since this won't validate I'm assuming there is a syntax problem. first red flag to me is that it seems I'm declaring two data types for the address element (string and complexType). This seems like a simple enough request but I'm stumped. Please advise.
 
Back
Top