XMLSpy is giving me the following error message:
"unable to locate a reference to a supported schema type (DTD, W3C Schema) within this document instance."
One second everything was fine. Next second, when I added "<?xml-stylesheet?>" at the top, it stopped acknowledging the schema document. Following is the documentation at the top of my .xml document:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="catalogItem.xsl"?>
<catalogItem xmlns="http:/www.fineHomemadeSoap.com/Catalog"
xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http:/www.fineHomemadeSoap.com/Catalog
CatalogItem.xsd"
>
The file "CatalogItem.xsd" is in the same directory as CatalogItem.xml. Also is CatalogItem.xsl.
Since the problem started when I added the second line at top, I attempted to reproduce the original validation by deleting it, to make the document same as before. XMLSpy didn't care. It still gave me the same error.
Daniel Hutchins
Stockton, CA
http://www.finehomemadesoap.com