[prev in list] [next in list] [prev in thread] [next in thread]
List: expat-discuss
Subject: [Expat-discuss] Expat To SAX
From: "Karl Waclawek" <karl () waclawek ! net>
Date: 2001-09-27 19:32:37
[Download RAW message or body]
I am writing a SAX wrapper for Expat (in Delphi/Win32) and have
a few questions:
* Which event/callback in Expat corresponds to SAXContentHandler.skippedEntity(...)
It is defined like this:
"The Parser will invoke this method once for each entity skipped.
Non-validating processors may skip entities if they have not seen
the declarations (because, for example, the entity was declared
in an external DTD subset). All processors may skip external entities,
depending on the values of
the http://xml.org/sax/features/external-general-entities and the
http://xml.org/sax/features/external-parameter-entities properties."
The closest I could find was the XML_ExternalEntityRefHandler(...), but
I don't know under which condition I would call skippedEntity instead of
SAXEntityResolver.resolveEntity(...)
* Which event/callback in Expat corresponds to SAXContentHandler.ignorableWhiteSpace(...)
I think the best bet would be XML_DefaultHandler(..), but it will be called
more often and with other data too.
* Where does the SAXLocator get the SystemId and PublicId
It is defined like this:
"The return value is the public/system identifier of the document entity or of
the external parsed entity in which the markup triggering the event appears"
Where does Expat return these?
Should I use XML_SetStartDoctypeDeclHandler and push them on a stack in userData?
If I parse external entities (ExternalEntityRefHandler) then I assume I would push
another set of PublicId/SystemId on the stack?
I would be grateful for any feedback.
Karl
_______________________________________________
Expat-discuss mailing list
Expat-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/expat-discuss
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic