title: How to demand strongly typed primitive values in XML
body: <p>I am creating a XSD schema to represent a key-value pair list. I would like to restrict keys to string (that is easy) but the values are allowed to be <strong>any</strong> XSD simple types (datetime, string, int...). However, I do want the values in the xml instance documents to be strongly typed, i.e., it should be explicitly declared if a value is datetime, integer, or string etc. Could some show an example how can I enforce explicit value typing?</p>