You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by jo...@xml4pharma.com on 2005/04/06 16:30:03 UTC
deriving value for xs:maxLength from schema
I have the following in my XML-Schema:
<xs:simpleType name="sasFormat">
<xs:restriction base="xs:string">
<xs:maxLength value="8" />
<xs:pattern value="[A-Za-z_$][A-Za-z0-9_.]*" />
</xs:restriction>
</xs:simpleType>
Using XMLBeans I made a list of all SchemaType's.
For the one corresponding to the above part of the Schema, I could
already derive that the restriction base is xs:string using:
schematype.getBaseType() giving:
T=string@http://www.w3.org/2001/XMLSchema
Now I also want to derive the values of xs:maxLength and xs:pattern.
How do I retrieve these values ?
Looked a lot through the documentation, but did not find how.
Can anyone tell me ?
Best regards
Jozef
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org