Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/finder/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16496/com/sun/xacml/finder/impl
Modified Files:
FilePolicyModule.java
Log Message:
made the parser namespace-aware in all cases
Index: FilePolicyModule.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/finder/impl/FilePolicyModule.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FilePolicyModule.java 17 Mar 2004 18:03:39 -0000 1.4
--- FilePolicyModule.java 12 May 2004 21:23:44 -0000 1.5
***************
*** 252,259 ****
DocumentBuilder db = null;
// set the factory to work the way the system requires
if (schemaFile == null) {
// we're not doing any validation
- factory.setNamespaceAware(false);
factory.setValidating(false);
--- 252,261 ----
DocumentBuilder db = null;
+ // as of 1.2, we always are namespace aware
+ factory.setNamespaceAware(true);
+
// set the factory to work the way the system requires
if (schemaFile == null) {
// we're not doing any validation
factory.setValidating(false);
***************
*** 261,265 ****
} else {
// we're using a validating parser
- factory.setNamespaceAware(true);
factory.setValidating(true);
--- 263,266 ----
|