You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Bobenrieth Guy <gb...@easyweb.jway.lu> on 2000/12/07 15:02:42 UTC

Re: Differences between features : load-dtd and load-external-dtd ?

Bobenrieth Guy wrote:
> 
> Hello,
> Can somebody explain me the difference between these two features ?
> 
> When I look at definition of "load-dtd", I can see "Ignore the external
> DTD completely."
> 
> And when I look at load-external-dtd, I can see "feature, so that when
> non validating,
> applications can ask the parser not to load the external subset at all "
> 
> It sounds like doing the same thing, no ?
> 
> Thanks for your help.
> 
> Guy Bobenrieth
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

Answer to myself,
it seems that only the
"http://apache.org/xml/features/nonvalidating/load-external-dtd" feature
is available inside the XMLParser.java file.

The others features are : 

private static final String RECOGNIZED_FEATURES[] = {
        // SAX2 core
        "http://xml.org/sax/features/validation",
        "http://xml.org/sax/features/external-general-entities",
        "http://xml.org/sax/features/external-parameter-entities",
        "http://xml.org/sax/features/namespaces",
        // Xerces
        "http://apache.org/xml/features/validation/schema",
        "http://apache.org/xml/features/validation/dynamic",
       
"http://apache.org/xml/features/validation/default-attribute-values",
       
"http://apache.org/xml/features/validation/validate-content-models",
        "http://apache.org/xml/features/validation/validate-datatypes",
       
"http://apache.org/xml/features/validation/warn-on-duplicate-attdef",
       
"http://apache.org/xml/features/validation/warn-on-undeclared-elemdef",
        "http://apache.org/xml/features/allow-java-encodings",
        "http://apache.org/xml/features/continue-after-fatal-error",
        "http://apache.org/xml/features/nonvalidating/load-dtd-grammar",
        "http://apache.org/xml/features/nonvalidating/load-external-dtd"
    };

May be the "load-dtd" feature was simply not implemented.

Guy