You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/07/30 10:50:28 UTC
cvs commit: xml-xerces/java/samples/dom Counter.java
andyc 01/07/30 01:50:28
Modified: java/samples/dom Tag: xerces_j_2 Counter.java
Log:
Minor DOM samples update.
Revision Changes Path
No revision
No revision
1.1.2.7 +1 -15 xml-xerces/java/samples/dom/Attic/Counter.java
Index: Counter.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/samples/dom/Attic/Counter.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- Counter.java 2001/07/24 08:10:32 1.1.2.6
+++ Counter.java 2001/07/30 08:50:28 1.1.2.7
@@ -87,7 +87,7 @@
*
* @author Andy Clark, IBM
*
- * @version $Id: Counter.java,v 1.1.2.6 2001/07/24 08:10:32 andyc Exp $
+ * @version $Id: Counter.java,v 1.1.2.7 2001/07/30 08:50:28 andyc Exp $
*/
public class Counter {
@@ -100,9 +100,6 @@
/** Namespaces feature id (http://xml.org/sax/features/namespaces). */
protected static final String NAMESPACES_FEATURE_ID = "http://xml.org/sax/features/namespaces";
- /** Namespace prefixes feature id (http://xml.org/sax/features/namespace-prefixes). */
- protected static final String NAMESPACE_PREFIXES_FEATURE_ID = "http://xml.org/sax/features/namespace-prefixes";
-
/** Validation feature id (http://xml.org/sax/features/validation). */
protected static final String VALIDATION_FEATURE_ID = "http://xml.org/sax/features/validation";
@@ -272,7 +269,6 @@
ParserWrapper parser = null;
int repetition = DEFAULT_REPETITION;
boolean namespaces = DEFAULT_NAMESPACES;
- boolean namespacePrefixes = DEFAULT_NAMESPACE_PREFIXES;
boolean validation = DEFAULT_VALIDATION;
boolean schemaValidation = DEFAULT_SCHEMA_VALIDATION;
@@ -321,10 +317,6 @@
namespaces = option.equals("n");
continue;
}
- if (option.equalsIgnoreCase("np")) {
- namespacePrefixes = option.equals("np");
- continue;
- }
if (option.equalsIgnoreCase("v")) {
validation = option.equals("v");
continue;
@@ -358,12 +350,6 @@
}
catch (SAXException e) {
System.err.println("warning: Parser does not support feature ("+NAMESPACES_FEATURE_ID+")");
- }
- try {
- parser.setFeature(NAMESPACE_PREFIXES_FEATURE_ID, namespacePrefixes);
- }
- catch (SAXException e) {
- System.err.println("warning: Parser does not support feature ("+NAMESPACE_PREFIXES_FEATURE_ID+")");
}
try {
parser.setFeature(VALIDATION_FEATURE_ID, validation);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org