[Home] [By Thread] [By Date] [Recent Entries]


At 8:10 PM +1100 2/23/03, Rick Jelliffe wrote:

>The other examples are XML Schemas, XInclude, and (because SAX only tells you
>whether a document is standalone after you have already selected 
>whether to use
>a validating parser or not) DTDs.

In practice, I think that's true, but I don't think there's anything 
in the SAX spec that requires it. I don't see why you couldn't set 
http://xml.org/sax/features/validation (Or 
http://xml.org/sax/features/external-general-entities and 
http://xml.org/sax/features/external-parameter-entities) some time 
after the XML declaration has been read but before the root element 
or perhaps the DOCTYPE declaration has been read, perhaps in 
startDocument() or setDocumentLocator().
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member