You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/02/18 21:59:27 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/dom DOMParser.java
sandygao 02/02/18 12:59:27
Modified: java/src/org/apache/xerces/impl/xs/dom DOMParser.java
Log:
There is an easier way to get the current XMLLocator: from startDocument.
Revision Changes Path
1.2 +2 -14 xml-xerces/java/src/org/apache/xerces/impl/xs/dom/DOMParser.java
Index: DOMParser.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/dom/DOMParser.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DOMParser.java 15 Feb 2002 16:54:29 -0000 1.1
+++ DOMParser.java 18 Feb 2002 20:59:27 -0000 1.2
@@ -60,7 +60,6 @@
import org.apache.xerces.impl.Constants;
import org.apache.xerces.parsers.StandardParserConfiguration;
import org.apache.xerces.impl.xs.SchemaSymbols;
-import org.apache.xerces.impl.XMLEntityManager;
import org.apache.xerces.xni.XMLLocator;
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.Augmentations;
@@ -73,7 +72,7 @@
*
* @author Sandy Gao, IBM
*
- * @version $Id: DOMParser.java,v 1.1 2002/02/15 16:54:29 sandygao Exp $
+ * @version $Id: DOMParser.java,v 1.2 2002/02/18 20:59:27 sandygao Exp $
*/
public class DOMParser extends org.apache.xerces.parsers.DOMParser {
@@ -116,18 +115,6 @@
} // <init>()
/**
- * Resets the parser state.
- *
- * @throws SAXException Thrown on initialization error.
- */
- public void reset() throws XNIException {
- super.reset();
- // get entity manager, then the locator
- XMLEntityManager entityManager = (XMLEntityManager)fConfiguration.getProperty(ENTITY_MANAGER);
- fLocator = entityManager.getEntityScanner();
- }
-
- /**
* The start of the document.
*
* @param locator The system identifier of the entity if the entity
@@ -147,6 +134,7 @@
super.startDocument(locator, encoding, augs);
// get a handle to the document created
fDocumentImpl = (DocumentImpl)super.fDocumentImpl;
+ fLocator = locator;
} // startDocument(XMLLocator,String,Augmentations)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org