Jump to content

XML Standard


Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...