You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2007/05/28 00:48:03 UTC

svn commit: r542046 - in /xerces/java/trunk/src/org/apache/xerces: impl/msg/DOMMessages.properties parsers/DOMParser.java

Author: mrglavas
Date: Sun May 27 15:48:02 2007
New Revision: 542046

URL: http://svn.apache.org/viewvc?view=rev&rev=542046
Log:
Localizing a DOM error message.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/msg/DOMMessages.properties
    xerces/java/trunk/src/org/apache/xerces/parsers/DOMParser.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/msg/DOMMessages.properties
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/msg/DOMMessages.properties?view=diff&rev=542046&r1=542045&r2=542046
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/msg/DOMMessages.properties (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/msg/DOMMessages.properties Sun May 27 15:48:02 2007
@@ -51,6 +51,7 @@
 InvalidDocumentClassName = The class name of the document factory \"{0}\" used to construct the DOM tree is not of type org.w3c.dom.Document.
 MissingDocumentClassName = The class name of the document factory \"{0}\" used to construct the DOM tree could not be found.
 CannotCreateDocumentClass = The class named \"{0}\" could not be constructed as a org.w3c.dom.Document.
+CannotQueryDeferredNode = Current element node cannot be queried when node expansion is deferred.
 
 # Error codes used by JAXP DocumentBuilder
 jaxp-order-not-supported = Property ''{0}'' must be set before setting property ''{1}''.

Modified: xerces/java/trunk/src/org/apache/xerces/parsers/DOMParser.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/parsers/DOMParser.java?view=diff&rev=542046&r1=542045&r2=542046
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/parsers/DOMParser.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/parsers/DOMParser.java Sun May 27 15:48:02 2007
@@ -20,6 +20,7 @@
 import java.io.CharConversionException;
 import java.io.IOException;
 
+import org.apache.xerces.dom.DOMMessageFormatter;
 import org.apache.xerces.impl.Constants;
 import org.apache.xerces.util.EntityResolverWrapper;
 import org.apache.xerces.util.EntityResolver2Wrapper;
@@ -566,7 +567,10 @@
                // ignore
            }
            if (deferred) {
-               throw new SAXNotSupportedException("Current element node cannot be queried when node expansion is deferred.");
+               throw new SAXNotSupportedException(
+                       DOMMessageFormatter.formatMessage(
+                       DOMMessageFormatter.DOM_DOMAIN,
+                       "CannotQueryDeferredNode", null));
            }
            return (fCurrentNode!=null &&
                    fCurrentNode.getNodeType() == Node.ELEMENT_NODE)? fCurrentNode:null;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org