Can XML schema be written to allow xs:attribute of either xs:date or xs:dateTime?

Posted by Kofi Sarfo on Stack Overflow See other posts from Stack Overflow or by Kofi Sarfo
Published on 2010-03-16T18:27:49Z Indexed on 2010/03/16 18:31 UTC
Read the original article Hit count: 298

Filed under:
|

I've some XML being returned from various sources and rather than update each of the sources so that they return date-specific data as attributes in either xs:date or xs:dateTime format I'd like for the XML Schema to be liberal and accept either.

Is it possible to use an OR operator somehow? What are the options?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xml-schema