[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: cvs commit: xml-xerces/java/src/org/apache/xerces/parsers DOMParser.java
From: lehors () apache ! org
Date: 2001-03-27 21:45:51
[Download RAW message or body]
lehors 01/03/27 13:45:51
Modified: java/src/org/apache/xerces/parsers DOMParser.java
Log:
allow namespaceURI of namespace declaration attributes to be
an empty string instead of null...
Revision Changes Path
1.41 +3 -3 xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java
Index: DOMParser.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/DOMParser.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- DOMParser.java 2001/02/21 00:30:31 1.40
+++ DOMParser.java 2001/03/27 21:45:50 1.41
@@ -109,7 +109,7 @@
* DOMParser provides a parser which produces a W3C DOM tree as its output
*
*
- * @version $Id: DOMParser.java,v 1.40 2001/02/21 00:30:31 lehors Exp $
+ * @version $Id: DOMParser.java,v 1.41 2001/03/27 21:45:50 lehors Exp $
*/
public class DOMParser
extends XMLParser
@@ -1134,7 +1134,7 @@
// done here.
int prefixIndex = xmlAttrList.getAttrPrefix(attrHandle);
String prefix = fStringPool.toString(prefixIndex);
- if (namespaceURI == null) {
+ if (namespaceURI == null || namespaceURI.length() == 0) {
if (prefix != null) {
if (prefix.equals("xmlns")) {
namespaceURI = "http://www.w3.org/2000/xmlns/";
@@ -2124,7 +2124,7 @@
// So as long as the XML parser doesn't do it, it needs to
// done here.
String prefix = fStringPool.toString(attributeDecl.prefix);
- if (namespaceURI == null) {
+ if (namespaceURI == null || namespaceURI.length() == 0) {
if (prefix != null) {
if (prefix.equals("xmlns")) {
namespaceURI = "http://www.w3.org/2000/xmlns/";
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic