<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Has anyone ever thought about or discussed the possibility of the
<br>SAXBuilder API allowing for SAX features to be turned on/off ?
<br> SAXBuilder builder = new SAXBuilder ();
<p> // enable schema validation.
<br> // JDOMException not thrown until build()
<p> builder.setFeature ("<A HREF="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</A>",
<br> builder.build ( theFile );
<p>This would obviously require SAXBuilder to cache requested feature states
<br>so that they could be turned on/off inside build(), but would be a
<br>addition to the API.
<p>Also, for some reason, I have found that I must set
<br>"<A HREF="http://xml.org/sax/features/namespaces">http://xml.org/sax/features/namespaces</A>" to true to get the
<br>org.apache.xerces.parsers.SAXParser to handle schema validation. This
<br>is obviously a xerces-j-dev mail list question, but I was wondering
<br>anyone else in the jdom world had experienced such a phenomenon ?
Jerry Lawson Virtual Summit, Inc.
Virtual Programmer email@example.com</pre>