hi,

I am validating an xml file with xerces2 using instance of SAXParser
when i give location of xml file, parser is able to find the document                  
 
but it is not able to find DTD, though they are in same directory.(pls                 
 
see the attatched files)

 like i am running the file from  "/home/nb/cvs/xerces2/build/classes" 
 XML and DTD files are in 'xerces2' directory, URI i am giving  is 
"/home/nb/cvs/xerces2/document.xml"
 
 it gives me error saying 
 /home/nb/cvs/xerces2/build/classes/home/nb/cvs/xerces2/document.dtd file 
 could not be found.
         
I see that while finding a path to DTD it is appending 
the path (from where i am running the java file) in the beggining ??

Same works fine when i use xerces 1.4.
is it a bug ?
        
- Neeraj -

        
        
<?xml version="1.0" ?>

<!DOCTYPE person SYSTEM "document.dtd">

<person>
        <name>foo</name>        
        <age>21</age>
        <location>IN</location>
</person>
        
        
<!ELEMENT person (name,age,location)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT location (#PCDATA)>

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

Reply via email to