Perhaps another useful parameter would be the name of the entity that you
are resolving.

-Glenn



                                                                                       
                      
                    "Jim Gan"                                                          
                      
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>         
                      
                    >                    cc:                                           
                      
                                         Subject:     RE: [Xerces2] XMLEntityResolver  
                      
                    09/25/2001                                                         
                      
                    12:55 PM                                                           
                      
                    Please respond                                                     
                      
                    to                                                                 
                      
                    xerces-j-dev                                                       
                      
                                                                                       
                      
                                                                                       
                      




This is a nice feature I was looking for.
It would be great if one more parameter is added to indicate
the entity is a DTD, a general entity or a XML schema.
The idea here is that schema/dtd caching can be better
managed at application level and schema/dtd can be provided
to the parser.

Thanks.

Jim

-----Original Message-----
From: Andy Clark [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 11:46 PM
To: [EMAIL PROTECTED]
Subject: [Xerces2] XMLEntityResolver


I just had an idea of adding a "name" parameter to the
XMLEntityResolver#resolveEntity method so that the entity
resolver has more options when resolving an entity. The
use case I was thinking of was being able to resolve the
external DTD based on the element root name, disregarding
what the document specified in the public and/or system
identifiers.

Whatcha think?

--
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]




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

Reply via email to