aspose file tools*
The moose likes XML and Related Technologies and the fly likes How to define custom data type in Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to define custom data type in Schema" Watch "How to define custom data type in Schema" New topic
Author

How to define custom data type in Schema

Pradeep Sahoo
Ranch Hand

Joined: Oct 13, 2002
Posts: 46
How to define my customised data type for date.
My requirement is that the date format for a field named "ExpiryDate" should be in MMYY format. How can I specify so in W3C Schema ?
Thanks in advance


Pradeep<br />Consultant - Enterprise Solutions,<br />Infosys Technologies Ltd,<br />Bangalore, India
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
You might consider -

And the data looks like -

It's not exactly what you asked for
Cheers,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953

put an extra space between : and pattern for a well known reason.
[ October 16, 2002: Message edited by: Roseanne Zhang ]
Pradeep Sahoo
Ranch Hand

Joined: Oct 13, 2002
Posts: 46
Thanks Roseanne,
But I do not know the reason for the extra space !!!
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Because in JavaRanch ':' followed by a 'p' w/o space will become a . Try it by yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to define custom data type in Schema