referencing a schema out of xml file

Hello, I made an xml file and now I want to make reference to a schema file,
but I don't get it correct.
Below I paste my xml file and underneath the Schema file.

<?xml version="1.0" encoding="UTF-8"?>
<Daily xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:SchemaLocation="schema.xsd">
	<Day-1>
		<Inhouseagency>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Inhouseagency>
		<Inhouseprivilege>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Inhouseprivilege>
		<Siteldirect>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Siteldirect>
		<Sitelweb>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Sitelweb>
		<Mindpearagency>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Mindpearagency>
		<Mindpearldirect>
			<svl>80</svl>
			<aba>80</aba>
			<asa>80</asa>
			<off>80</off>
		</Mindpearldirect>
		<Totaloperations>
			<svl>90</svl>
			<aba>90</aba>
			<asa>90</asa>
			<off>90</off>
		</Totaloperations>
	</Day-1>
</Daily>

Schema

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:annotation>
		<xsd:documentation>
            Schema voor daily reporting test.
        </xsd:documentation>
	</xsd:annotation>
	<xsd:element name="Daily" type="Typedaily"/>
	<xsd:complexType name="Typedaily">
		<xsd:sequence>
			<xsd:element name="Day-1" type="Typeday-1"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typeday-1">
		<xsd:sequence>
			<xsd:element name="Inhouseagency" type="Typeinhouseagency"/>
			<xsd:element name="Inhouseprivilege" type="Typeinhouseprivilege"/>
			<xsd:element name="Siteldirect" type="Typesiteldirect"/>
			<xsd:element name="Sitelweb" type="Typesitelweb"/>
			<xsd:element name="Mindpearlagency" type="Typemindpearlagency"/>
			<xsd:element name="Mindpearldirect" type="Typemindpearldirect"/>
			<xsd:element name="Totaloperations" type="Typetotaloperations"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typeinhouseagency">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typeinhouseprivilege">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typesiteldirect">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typesitelweb">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typemindpearlagency">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typemindpearldirect">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="Typetotaloperations">
		<xsd:sequence>
			<xsd:element name="svl" type="xsd:double"/>
			<xsd:element name="aba" type="xsd:double"/>
			<xsd:element name="asa" type="xsd:double"/>
			<xsd:element name="off" type="xsd:double"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

Can anybody help?

thanks,

Stijn
-- 
View this message in context: http://www.nabble.com/referencing-a-schema-out-of-xml-file-tf4284415.html#a12195889
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.

Received on Friday, 17 August 2007 16:59:11 UTC