Friday, June 3, 2011

Valid XSD format values

xs:datetime
Valid xs:datetime value is 2005-05-27T14:11:00.943Z but the following values are not the valid one
  • 2005-05-27 14:11:00.943Z (missing date and time separator "T"),
  • 2005-05-27T14:11:00.943 (missing time zone)
  • 2005-05-27 14:11:00.943 (missing time separator and time zone).
xs:date
2005-05-27Z is a valid xs:date value but 2005-05-27 is not since no time zone is specified

xs:boolean
True is not a valid xs:boolean valied.It sholud be'true'.similarly 'False' is not valid value,it is 'false'

xs:decimal

value 0.12345678 but not 12E-4.to convert scientific number in to the decimal format you neet to use the following template convertSciToNumString (which is published in the previous post)

0 comments:

Post a Comment