Hi,
You can try the loadGrammar method to load an external dtd.  It is
available on most of the parsers.  I can't remember using it myself so not
sure how well it works...

Regards,
David


                                                                           
             "Dantzler,                                                    
             DeWayne C"                                                    
             <dewayne.c.dantzl                                          To 
             [EMAIL PROTECTED]>            <[email protected]>         
                                                                        cc 
             10/26/2007 12:12                                              
             AM                                                    Subject 
                                       FW: How to load an external DTD     
                                       using the Xerces Library            
             Please respond to                                             
             [EMAIL PROTECTED]                                             
                 ache.org                                                  
                                                                           
                                                                           
                                                                           





> Xerces has a method to enable/disable the loading of an external DTD
>
> /** Set the 'Loading External DTD' flag
>       *
>       * This method allows users to enable or disable the loading of
> external DTD.
>       * When set to false, the parser will ignore any external DTD
> completely
>       * if the validationScheme is set to Val_Never.
>       *
>       * The parser's default state is: true.
>       *
>       * This flag is ignored if the validationScheme is set to
> Val_Always or Val_Auto.
>       *
>       * @param newState The value specifying whether external DTD
> should
>       *                 be loaded or not.
>       *
>       * @see #getLoadExternalDTD
>       * @see #setValidationScheme
>       */
>     void setLoadExternalDTD(const bool newState);
>
> But, I can't seem to locate the actual method to load an external DTD.
>
>
> De Wayne Dantzler
>


Reply via email to