Have you tried parser.setEntityResolver(org.xml.sax.EntityResolver
resolver)?

______________________________________
Aaron Scifres
Software Engineer
DeskNet, Inc.
66 Pearl St. Suite 300
Portland, ME 04101
(207) 772-1484 x16
http://www.desknetinc.com
DeskNetAPS - Harness the Power of Your Content


                                                                                
                                                        
                      Richard Emberson                                          
                                                        
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]     
                                          
                      r.com>                       cc:                          
                                                        
                      Sent by:                     Subject:  XMLEntityResolver  
                                                        
                      [EMAIL PROTECTED]                                         
                                                    
                      rharbor.com                                               
                                                        
                                                                                
                                                        
                                                                                
                                                        
                      09/12/2002 08:22 PM                                       
                                                        
                      Please respond to                                         
                                                        
                      xerces-j-user                                             
                                                        
                                                                                
                                                        
                                                                                
                                                        




The only way I have found to load my own XMLEntityResolver into a
DOMParser is by calling:

parser.setProperty(ENTITY_RESOLVER, er);

where the definition of ENTITY_RESOLVER is:

protected static final String ENTITY_RESOLVER =
        Constants.XERCES_PROPERTY_PREFIX
+Constants.ENTITY_RESOLVER_PROPERTY;

in my own code (since all definitions of ENTITY_RESOLVER in
xerces is protected).

Is there an API for setting the XMLEntityResolver?

Thanks.

Richard


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