Hi

I had a smilar problem that was due to the relative Url :
The program is looking for fdpd.xsd in the folder it's running, and not in
the folder the xml is.
try moving everything (program, instance and schema) in the same folder.

Hope that can help

--
Etienne


                                                                                
                                                               
                    "Nestel,                                                    
                                                               
                    Frank"               To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>                               
                    <frank.nestel@       cc:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>                                         
                    coi.de>              Subject:     Where is the schema?      
                                                               
                                                                                
                                                               
                    07/11/2001                                                  
                                                               
                    10:50 AM                                                    
                                                               
                    Please respond                                              
                                                               
                    to                                                          
                                                               
                    xerces-j-user                                               
                                                               
                                                                                
                                                               
                                                                                
                                                               



Hi,

you have seen this question before quite a few times,
and I guess I'm still doing kind of a stupid mistake,
but I still cannot figure out, how to parse an namespace xml against
a schema. I have both as files in the same directory and they
start like:

fdpd.xml:
=========

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE f:fdpd [
<!ENTITY copy   "&#x00A9;">
]>
<f:fdpd version="1.0"
    xmlns:f="http://www.spieleck.de/fdpd";
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xsi:schemaLocation='http://www.spieleck.de/fdpd fdpd.xsd'
    >
           <f:set>
           ...

and the corresponding scheme fdpd.xsd:
======================================
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    targetNamespace="http://www.spieleck.de/fdpd";
    elementFormDefault="qualified"
    >
           <xsd:element name="fdpd">
                     <xsd:complexType>
           ...

and whenever I try Xerces 1.4.1 to parse fdpd.xml in validating
mode I get the message

http://www.spieleck.de/fdpd grammar not found

followed by many SAXParseException about things not declared.

Help!

Thank you,
Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to