elkoalaloco Posted April 4, 2011 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. Link to comment Share on other sites More sharing options...
jeffman Posted April 4, 2011 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 Link to comment Share on other sites More sharing options...
elkoalaloco Posted April 4, 2011 Author 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. Link to comment Share on other sites More sharing options...
boen_robot Posted April 8, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.