--below is qe.xml------
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://mynamespace/"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://mynamespace/
qe.xsd">
<dc:title>
<mainTitle>slum dunk</mainTitle>
<subTitle>slum dunk</subTitle>
</dc:title>
</book>


--below is qe.xsd------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://mynamespace/"; xmlns="http://mynamespace/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:dc="http://purl.org/dc/elements/1.1/"; elementFormDefault="qualified">
<xsd:element name="book" type="bookType"/>
<xsd:complexType name="bookType" >
<xsd:sequence>
<xsd:element name="dc:title" type="titleType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="titleType">
<xsd:sequence>
<xsd:element name="mainTitle" type="xsd:string"/>
<xsd:element name="subTitle" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>


qe.xml is a well formed document. but it is impossible to validate.
because qe.xsd have got the problem line

<xsd:element  name="dc:title"  type="titleType"/>

I know I wrote wrong line. but I have not other solutions.

any idea?

Thanks in advance.



_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




Reply via email to