Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSDSimpleTypeDef validation
XSDSimpleTypeDef validation [message #76777] Thu, 08 January 2009 22:41 Go to next message
Lukasz Wycisk is currently offline Lukasz WyciskFriend
Messages: 4
Registered: July 2009
Junior Member
I define type:

<xs:simpleType name="isValid4">
<xs:restriction base="xs:string">
<xs:enumeration value="small" />
<xs:enumeration value="medium" />
<xs:enumeration value="large" />
</xs:restriction>
</xs:simpleType>

Method isValidLiteral( "dummy" ) from XSDSimpleTypeDefinition returns.

How can I validate values?

Thanks,
£ukasz Wycisk
Re: XSDSimpleTypeDef validation [message #76794 is a reply to message #76777] Thu, 08 January 2009 22:47 Go to previous messageGo to next message
Lukasz Wycisk is currently offline Lukasz WyciskFriend
Messages: 4
Registered: July 2009
Junior Member
I define type:

<xs:simpleType name="isValid4">
<xs:restriction base="xs:string">
<xs:enumeration value="small" />
<xs:enumeration value="medium" />
<xs:enumeration value="large" />
</xs:restriction>
</xs:simpleType>

Method isValidLiteral( "dummy" ) from XSDSimpleTypeDefinition returns true.

How can I validate values using XSDSimpleTypeDefinition class?

Thanks,
£ukasz Wycisk
Re: XSDSimpleTypeDef validation [message #76809 is a reply to message #76794] Thu, 08 January 2009 23:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040501000008090804010507
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Re: XSDSimpleTypeDef validation [message #603589 is a reply to message #76777] Thu, 08 January 2009 22:47 Go to previous message
Lukasz Wycisk is currently offline Lukasz WyciskFriend
Messages: 4
Registered: July 2009
Junior Member
I define type:

<xs:simpleType name="isValid4">
<xs:restriction base="xs:string">
<xs:enumeration value="small" />
<xs:enumeration value="medium" />
<xs:enumeration value="large" />
</xs:restriction>
</xs:simpleType>

Method isValidLiteral( "dummy" ) from XSDSimpleTypeDefinition returns true.

How can I validate values using XSDSimpleTypeDefinition class?

Thanks,
£ukasz Wycisk
Re: XSDSimpleTypeDef validation [message #603593 is a reply to message #76794] Thu, 08 January 2009 23:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040501000008090804010507
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Previous Topic:XSDSimpleTypeDef validation
Next Topic:XSDRedefinableComponent
Goto Forum:
  


Current Time: Sat Nov 22 18:14:14 GMT 2014

Powered by FUDForum. Page generated in 0.01724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software