View Single Post
  #1 (permalink)  
Old January 3rd, 2008, 08:50 AM
danielh danielh is offline
Authorized User
 
Join Date: Jun 2003
Location: Stockton, CA, USA.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Altova XMLSpy Can't locate schema.

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
__________________
Daniel Hutchins
Stockton, CA
http://www.finehomemadesoap.com
Reply With Quote