elkoalaloco 0 Posted April 4, 2011 Report Share Posted April 4, 2011 Hello Everybody,A couple of days ago, a customer said something about that a particular schema did not comply with XML standard about date format, like dd/mm/yyyy, but i seem not to be able to find such standard anywhere.is this guy talking none sense?Thanks all in advance. Quote Link to post Share on other sites
jeffman 86 Posted April 4, 2011 Report Share Posted April 4, 2011 XML shouldn't care about that. XML has vary few rules. That's the beauty. More likely, the XML didn't comply with the Schema. Look here: http://www.w3schools.com/Schema/schema_dtypes_date.asp Quote Link to post Share on other sites
elkoalaloco 0 Posted April 4, 2011 Author Report Share Posted April 4, 2011 Thanks a lot Deirdre's Dad, I totally forgot about XSD data types, i just concentrated myself in the XML standards :S i now saw the schema again and the type was actually string so my customer was kind of right.<xs:attribute name="PickUpDateTime" type="xs:string" use="optional"/> so if the type was declared as DateTime then he should have been right.Best regards and thanks for yor feedback. Quote Link to post Share on other sites
boen_robot 107 Posted April 8, 2011 Report Share Posted April 8, 2011 I think he was also implying you should use the xs:dateTime XML Schema datatype... and I'd agree. There are many tools that can generate code or visuals based on the XML Schema, and having your type be a string breaks their ability to generate such things. If you could alter your XML Schema to use xs:dateTime AND reformat your dates so that they're valid according to it, you'll likely save him some trouble. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.