mrglavas 2004/02/04 10:28:53
Modified: java/src/org/apache/xerces/dom AttrNSImpl.java
Log:
Some clean up:
- Access static method isXMLName in a static way.
- Removing unused import.
Revision Changes Path
1.42 +3 -4 xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java
Index: AttrNSImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrNSImpl.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- AttrNSImpl.java 29 Jan 2004 20:57:40 -0000 1.41
+++ AttrNSImpl.java 4 Feb 2004 18:28:53 -0000 1.42
@@ -2,7 +2,7 @@
* The Apache Software License, Version 1.1
*
*
- * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 1999-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -58,7 +58,6 @@
package org.apache.xerces.dom;
import org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl;
-import org.apache.xerces.util.XMLSymbols;
import org.apache.xerces.xni.NamespaceContext;
import org.apache.xerces.xs.XSSimpleTypeDefinition;
import org.w3c.dom.DOMException;
@@ -280,7 +279,7 @@
}
if (prefix != null && prefix.length() != 0) {
- if
(!ownerDocument().isXMLName(prefix,ownerDocument().isXML11Version())) {
+ if
(!CoreDocumentImpl.isXMLName(prefix,ownerDocument().isXML11Version())) {
String msg =
DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN,
"INVALID_CHARACTER_ERR", null);
throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]