roxygirl17_roxs
New Member
I have a schema file and I am validating against an xml. But it is saying date of birth (date) isn't valid date. I just deleted other tags from the schema otherwise it would make it too long to read. Can anyone spot what I am doing wrong? I don't have much experience using xml schema before.I am using vb.net by the way.My xml as follow.\[code\] <?xml version="1.0" encoding="UTF-8" ?> <EEL> <CANDIDATE> <SURNAME>JONNY</SURNAME> <FORENAME>WALKER</FORENAME> <DOB>29/12/2005</DOB> <SEX>M</SEX> <POSTCODE>DD12DL</POSTCODE> </CANDIDATE> </EEL>\[/code\]in the schema, \[code\]<?xml version="1.0" encoding="UTF-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="EEL"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="CANDIDATE"> <xs:complexType> <xs:sequence> <xs:element name="DOB" type="xs:date" minOccurs ="1" maxOccurs="1" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType></xs:element>\[/code\]