If you find time to join me on IRC in 1 or 2 hours we may discuss some
points/questions of your project.
Ralf
Sachith Dhanushka schrieb:
Hi,
I asked this questions also as I need this for my SoC project. Can some
one please let me know how I can create the following schema fragment
programatically?
<xs:simpleType name="creditCardVendor">
<xs:restriction base="xs:string">
<xs:enumeration value="VISA"/>
<xs:enumeration value="AMERICANEXPRESS"/>
<xs:enumeration value="DISCOVER"/>
</xs:restriction>
</xs:simpleType>
I was tracing how schema model is created using Sax2ComponentReader. But
it uses SimpleTypeDefinition class which is not public, so I can not use
it inside my code. I then tried to use Schema.createSimpleType() method
but it also seems to be not working.
I would really appreciate if Werner or some one can help me with this as
I am stuck with my code since I can not handle simple type definitions.
Thanks.
SD
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email