You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by David N Bertoni/Cambridge/IBM <da...@us.ibm.com> on 2002/05/14 21:54:22 UTC

Re: Xerces-C and OpenOffice.org: anyone success?

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:      xerces-c-dev@xml.apache.org                                                         
                      <mlanham@cise.uf         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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org