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 "Perry A. Caro" <ca...@Adobe.COM> on 2000/10/06 23:52:51 UTC

Dumb usage questions: features, external entities

I've got some dumb usage questions.

Is there a list of the feature and property URI's, and what their
definitions are anywhere?  I couldn't find anything on the online docs on
xml.apache.org.  Should I just look in the source?

Is there user level documentation of how external entities, particularly
DTD's referenced by ExternalID, are handled in Xerces-C?  I gather that this
is feature setting dependent somewhat.

What I'd really like to know is if there is a way to configure SAX2XMLReader
so that it *never* automatically acquires external entities, but rather,
calls the client, through EntityResolver, to go get the DTD, etc.  Is all
that's required is to install an EntityResolver that isn't the default?

Perry

Re: Dumb usage questions: features, external entities

Posted by Andy Heninger <an...@jtcsv.com>.
"Perry A. Caro" <ca...@Adobe.COM> asks

> What I'd really like to know is if there is a way to configure
SAX2XMLReader
> so that it *never* automatically acquires external entities, but rather,
> calls the client, through EntityResolver, to go get the DTD, etc.  Is
all
> that's required is to install an EntityResolver that isn't the default?
>

Your guess is correct.  All that is required is to install an Entity
Resolver, and it will be called for all external entity references,
including the DTD.  This behavior is not configurable; install the
entity resolver and it will be called.

This does not depend on the use of SAX2 - it works with all of the
parsers.

> Is there a list of the feature and property URI's, and what their
> definitions are anywhere?  I couldn't find anything on the online docs
on
> xml.apache.org.  Should I just look in the source?
>
No :(

And it looks like there was a general problem with the packaging of the
user level docs in the 1.3 release - it'll need an update.

The features supported in SAX2 for xerces-c are

http://xml.org/sax/features/validation
http://xml.org/sax/features/namespaces
http://apache.org/xml/features/validation/dynamic
http://apache.org/xml/features/validation/reuse-validator


Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com