IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: xmlaltovauser12
About
User Name: xmlaltovauser12
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, April 7, 2011
Last Visit: Thursday, April 7, 2011 8:44:25 PM
Number of Posts: 3
[0.02% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Schema location error
Posted: Thursday, April 7, 2011 8:26:35 PM
I got an error resolved..

This is what i changed in my xml file.


<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://eobjects.org/analyzerbeans/configuration/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://eobjects.org/analyzerbeans/configuration/1.0 abc.xsd">
</configuration>
Topic: Schema location error
Posted: Thursday, April 7, 2011 6:22:00 PM
Hello Altova users

I am using xml spy enterprise edition 2011 software to validate xml file agaist xsd file. But both the files are well formed. But when i put a refrence of schema file in xml file then it gives me an error as

Unable to locate a reference to a supported schema type (DTD, W3C Schema) within this document instance.

Both the files (xml and xsd) are in the same directory(location).

Xml file

<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://abc.org/sample/cgi/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://abc.org/sample/cgi/1.0/abc.xsd">
<configuration-metadata>
<configuration-name>Configuration with all the datastores</configuration-name>
</configuration-metadata>
</configuration>


xsd file

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://abc.org/sample/cgi/1.0"
xmlns:ab="http://abc.org/sample/cgi/1.0"
elementFormDefault="qualified">
<element name="configuration">
<complexType>
</complexType>
</element>

</schema>

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.