Click to See Complete Forum and Search --> : how to declare a string element with an attribute


lcscne
03-24-2005, 10:31 AM
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.