Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [xsd-dev] I can't get the Numeric Data Type for the current XSDSimpleTypeDefinition

Dear Ed. Merks,

The problem is that I can't get the correct Derived Data Type name of XSDSimpleTypeDefinition element.  For example if the xsd file has two elements :
<xs:element name="direct-short" type="xs:short"/>
<xs:element name="link-short" type="newType" />

<xs:element name="newType">
   
<xs:restriction base="xs:short"/>
</xs:element>

I am waiting  to take the correct "short" value for both above elemens (
direct-short,link-short)

Try No 1. (
XSDSimpleTypeDefinition.getName)
the first element direct-short with the method XSDSimpleTypeDefinition.getName returns "short"
the second element link-short with the method
XSDSimpleTypeDefinition.getName returns "newType"

Try No 2.(XSDSimpleTypeDefinition.getBaseType.getName)
the first element
direct-short with the method XSDSimpleTypeDefinition.getBaseType returns "int"
the second element link-short with the method XSDSimpleTypeDefinition.getBaseType returns "short"

I would like to get the correct "short" value in any case. How can do this? Could you give me any example?

Thanks in advance!

Regards,
John Dous


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!

Back to the top