Even if validation is disabled, the parser will attempt to process the DTD.
You must either supply the DTD, or install an EntityResolver instance to
resolve the external entity.

You may also find that the DTD is required because it defines entities that
are used in the document.

Dave



                                                                                       
                                                     
                      "Michael J.                                                      
                                                     
                      Lanham"                  To:      [EMAIL PROTECTED]    
                                                     
                      <[EMAIL PROTECTED]         cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                
                      l.edu>                   Subject: Xerces-C and OpenOffice.org: 
anyone success?                                        
                                                                                       
                                                     
                      05/14/2002 12:44                                                 
                                                     
                      PM                                                               
                                                     
                      Please respond                                                   
                                                     
                      to xerces-c-dev                                                  
                                                     
                                                                                       
                                                     
                                                                                       
                                                     



Hi,

trying to parse the content.xml file from an OpenOffice.org zip archive
created by openoffice writer program.  keep getting this error
Message: An exception occured! Type:RuntimeException,
Message:Could not open DTD file
     '/.automount/netapp0/export/homes02/mlanham/tmp/office.dtd'
An error occured during parsing

has anyone else had success parsing the content.xml file?
how did you do it?

the offending line in the xml file looks like this:
<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD
OfficeDocument
1.0//EN" "office.dtd">


I tried turning validation in Xerces-C off but that did not seem to help

Mike

--
Michael Lanham
Captain, Infantry
United States Army

- TA for CIS 6930 Unix System Admin
- Some say patriotism is the last refuge of the scoundrel.  I propose that
religion has subsumed that role for the knuckleheads of this century.



---------------------------------------------------------------------
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