code_junkie

VS2008: Running xsd.exe on schema file gives XMLSchema:datetime is not declared

Nov 13th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <xs:schema id="Appointment" targetNamespace="http://tempuri.org/Record.xsd" elementFormDefault="qualified"
  2. attributeFormDefault="qualified" xmlns="http://tempuri.org/Record.xsd" xmlns:mstns="http://tempuri.org/Record.xsd"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  4. <xs:element name="Record" msdata:IsDataSet="true">
  5. <xs:complexType>
  6. <xs:choice maxOccurs="unbounded">
  7. <xs:element name="Record">
  8. <xs:complexType>
  9. <xs:sequence>
  10. <xs:element name="ID" type="xs:string" minOccurs="0" />
  11. <xs:element name="TimeStart" type="xs:datetime" minOccurs="0" />
  12. <xs:element name="TimeEnd" type="xs:datetime" minOccurs="0" />
  13. </xs:sequence>
  14. </xs:complexType>
  15. </xs:element>
  16. </xs:choice>
  17. </xs:complexType>
  18. </xs:element>
  19.  
  20. Schema validation warning: Type 'http://www.w3.org/2001/XMLSchema:datetime' is not declared. Line 13, position 9.
  21.  
  22. xs:dateTime
  23.  
  24. xs:datetime
Add Comment
Please, Sign In to add comment