Hi all,

I am trying to create an xml file and schema that can be oppened by a .net app. However when the app trys to read from the data set, nothing is being held. I think this may be due to an error in the creation of the xml and xsd files. I would be greatful if someone could just check them over to see if there is anything out of place. Thanks

xml file

<?xml version="1.0" encoding="ISO-8859-1"?>

<tblEmployee xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="trial.xsd">
	<employee empID="001">
		<name>Jon</name>
		<surname>Cox</surname>
		<age>31</age>
	</employee>
</tblEmployee>

xsd file

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://wwww.w3.org/2001/XMLSchema">
	
       <xs:element name="tblEmployee">
                <xs:complexType>
                       <xs:sequence>  
                         <xs:element name="employee">
                           <xs:complexType>         
	             <xs:sequence>
		<xs:element name="name" type="xs:string"/>
		<xs:element name="surname" type="xs:string"/>
		<xs:element name="age" type="xs:integer"/>
	             </xs:sequence>
	             <xs:attribute name="empID" type="xs:string" use="required"/>
	         </xs:complexType>
	     </xs:element>
	</xs:sequence>
       </xs:complexType>
   </xs:element>

</xs:schema>
This question has already been answered. Start a new discussion instead.