p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XML (http://p2p.wrox.com/forumdisplay.php?f=91)
-   -   Altova XMLSpy Can't locate schema. (http://p2p.wrox.com/showthread.php?t=64978)

danielh January 3rd, 2008 08:50 AM

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

samjudson January 3rd, 2008 09:05 AM

Your http:// appear to be missing the second /?


/- Sam Judson : Wrox Technical Editor -/

danielh January 3rd, 2008 04:27 PM

samjudson:

Thank you, so much.

Everything back to normal.

I will be conducting a major senate judiciary committee investigation as to what happened to "//."

It was in there at the beginning, and somewhere a software must've escaped the combination of characters.

I was ready to turn myself in, to the state mental authorities, to receive electric shock treatments, to "re-boot" my brain.

Daniel Hutchins
Stockton, CA
http://www.finehomemadesoap.com


All times are GMT -4. The time now is 01:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.