--- Per Nyfelt <[EMAIL PROTECTED]> wrote:
> Yes I can.

Here then is a patch proposal to add a setSAXFeature()
and getSAXFeature() method.

James




__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
? saxfeature.patch
? xapi/src/classes
? xapi/src/classes-sdk
? xapi/src/lib/xmldb-api-20021022.jar
? xapi/src/lib/xmldb-api-20021026.jar
? xapi/src/lib/xmldb-api-sdk-20021022.jar
? xapi/src/lib/xmldb-api-sdk-20021026.jar
? xupdate/src/build
? xupdate/src/lib
Index: xapi/src/api/org/xmldb/api/modules/XMLResource.java
===================================================================
RCS file: /raid/Repository/xmldb/xapi/src/api/org/xmldb/api/modules/XMLResource.java,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 XMLResource.java
--- xapi/src/api/org/xmldb/api/modules/XMLResource.java	30 Jan 2002 09:46:42 -0000	1.1.1.1
+++ xapi/src/api/org/xmldb/api/modules/XMLResource.java	28 Oct 2002 09:50:18 -0000
@@ -111,6 +111,29 @@
    void setContentAsDOM(Node content) throws XMLDBException;
 
    /**
+    * Sets a SAX feature that will be used when this <code>XMLResource</code>
+    * is used to produce SAX events (through the getContentAsSAX() method)
+    *
+    * @param feature Feature name. Standard SAX feature names are documented at
+    *          @see http://sax.sourceforge.net/.
+    * @param value Set or unset feature
+    */
+   void setSAXFeature(String feature, boolean value)
+           throws SAXNotRecognizedException, SAXNotSupportedException;
+
+   /**
+    * Returns current setting of a SAX feature that will be used when this
+    * <code>XMLResource</code> is used to produce SAX events (through the 
+    * getContentAsSAX() method)
+    *
+    * @param feature Feature name. Standard SAX feature names are documented at
+    *        @see http://sax.sourceforge.net/.
+    * @return whether the feature is set
+    */
+   boolean getSAXFeature(String feature)
+	    throws SAXNotRecognizedException, SAXNotSupportedException;
+
+   /**
     * Allows you to use a <code>ContentHandler</code> to parse the XML data from
     * the database for use in an application.
     *

Reply via email to