Re: Schema DEV

Hi Uriel,

> Hello, my name is Uriel Nusenbaum I´m from Buenos Aires, Argentina.
> I need to make an a schema that use my own data type ? it's posible ?

Certainly.

> for example :
>   <element name = "FirstName" type = "ownstring" />
> i like to define that ownstring data type is a set of characters but 
> only letters and numbers : ex.: hggdff655

Here is one example:

<xs:simpleType name="myType">
   <xs:restriction base="xs:string">
      <xs:pattern value="[a-z0-9]"/>
   </xs:restriction>
</xs:simpleType>

<xs:element name="FirstName" type="myType"/>

A good start for W3C XML Schema is the Primer [1]

Cheers,
/Eddie

[1] http://www.w3.org/TR/xmlschema-0/

> I will aprecciate the answer
> Thanks.
>  

Received on Wednesday, 30 October 2002 17:28:02 UTC