How to define an element with attribute

Hi all,

I am new to schema and is trying to write a schema. Please refer to the example below :
<Value POSITION="4">PART</Value>

How do I define the schema for the above element?

Right now, I am writing as :

<xsd:element name="Value" minOccurs="0" maxOccurs="unbounded">


<xsd:attribute name="POSITION" type="xsd:positiveInteger" use="optional"/>



In the above, I miss out the type for the element value. How or where can I specify it? If none is specified, what will the default type be?

Thanks in advance for any help.

Received on Friday, 30 March 2001 00:48:23 UTC