You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2003/06/14 00:34:16 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/traversers XSDHandler.java
neilg 2003/06/13 15:34:16
Modified: java/src/org/apache/xerces/impl/xs/traversers
XSDHandler.java
Removed: java/src/org/apache/xerces/impl/xs/dom DOMNodePool.java
DOMParser.java DocumentImpl.java ElementNSImpl.java
Log:
now that we have used a DTM for schema-document parsing for a long time, there is no longer a need to maintain the old DOM-based code. Removing it, along with the references to it in XSDHandler.
Revision Changes Path
1.67 +2 -14 xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
Index: XSDHandler.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- XSDHandler.java 28 May 2003 15:01:15 -0000 1.66
+++ XSDHandler.java 13 Jun 2003 22:34:16 -0000 1.67
@@ -77,7 +77,6 @@
import org.apache.xerces.impl.xs.XSGrammarBucket;
import org.apache.xerces.impl.xs.XSMessageFormatter;
import org.apache.xerces.impl.xs.XSParticleDecl;
-import org.apache.xerces.impl.xs.dom.ElementNSImpl;
import org.apache.xerces.impl.xs.opti.ElementImpl;
import org.apache.xerces.impl.xs.opti.SchemaParsingConfig;
import org.apache.xerces.impl.xs.util.SimpleLocator;
@@ -1972,7 +1971,7 @@
* no information can be retrieved from the element.
*/
public SimpleLocator element2Locator(Element e) {
- if (!(e instanceof ElementNSImpl || e instanceof ElementImpl))
+ if (!( e instanceof ElementImpl))
return null;
SimpleLocator l = new SimpleLocator();
@@ -1989,17 +1988,6 @@
return false;
if (e instanceof ElementImpl) {
ElementImpl ele = (ElementImpl)e;
- // get system id from document object
- Document doc = ele.getOwnerDocument();
- String sid = (String)fDoc2SystemId.get(doc);
- // line/column numbers are stored in the element node
- int line = ele.getLineNumber();
- int column = ele.getColumnNumber();
- l.setValues(sid, sid, line, column);
- return true;
- }
- if (e instanceof ElementNSImpl) {
- ElementNSImpl ele = (ElementNSImpl)e;
// get system id from document object
Document doc = ele.getOwnerDocument();
String sid = (String)fDoc2SystemId.get(doc);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org