<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Has anyone ever thought about or discussed the possibility of the
<br>SAXBuilder API allowing for SAX features to be turned on/off ?
<p>For instance,
<br>&nbsp;&nbsp; SAXBuilder builder = new SAXBuilder ();
<p>&nbsp; //&nbsp;&nbsp; enable schema validation.
<br>&nbsp; //&nbsp;&nbsp; JDOMException not thrown until build()
<p>&nbsp;&nbsp; builder.setFeature ("<A HREF="http://apache.org/xml/features/validation/schema">http://apache.org/xml/features/validation/schema</A>",
true);
<br>&nbsp;&nbsp; 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
very convenient
<br>addition to the API.
<br>&nbsp;
<p>Also, for some reason, I&nbsp;have found that I&nbsp;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&nbsp;was wondering
if
<br>anyone else in the jdom world had experienced such a phenomenon ?
<br>&nbsp;
<pre>--&nbsp;
___________________________________________________
Jerry Lawson&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Virtual Summit, Inc.
Virtual Programmer&nbsp;&nbsp; jerry.lawson@virtualsummit.com</pre>
&nbsp;</html>