<!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> 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>",
true);
<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
very convenient
<br>addition to the API.
<br>
<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
if
<br>anyone else in the jdom world had experienced such a phenomenon ?
<br>
<pre>--
___________________________________________________
Jerry Lawson Virtual Summit, Inc.
Virtual Programmer jerry.lawson@virtualsummit.com</pre>
</html>