PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3455

*** shadow/3455 Thu Sep  6 03:39:33 2001
--- shadow/3455.tmp.20987       Thu Sep  6 03:39:33 2001
***************
*** 0 ****
--- 1,38 ----
+ +============================================================================+
+ | getFeaturesRecognized reports unavailable features                         |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3455                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4.3                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                                 |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Some of the features reported by XMLParser.getFeaturesRecognized() are not
+ available. When trying to query the actual state of these features, one will
+ get a exception.
+ 
+ Features:
+ http://apache.org/xml/features/validation/schema-full-checking
+ http://apache.org/xml/features/validation/default-attribute-values
+ http://apache.org/xml/features/validation/validate-content-models
+ http://apache.org/xml/features/validation/validate-datatypes
+ 
+ Testcase:
+ insert this code snippet into e.g. DomCounter.java
+ -------------------------------------------------------
+ String[] availFeatures=parser.getFeaturesRecognized();
+ for( int i = 0; i < availFeatures.length ; ++i ){
+   System.out.print( availFeatures[i] );
+   try{
+     System.out.println( " is set to " + parser.getFeature( availFeatures[i] ));
+   }catch( Exception e ){
+     System.out.println( " is not available!");
+   }
+ }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to