[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r578659 -
From: mrglavas () apache ! org
Date: 2007-09-24 5:22:14
Message-ID: 20070924052215.677921A9832 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Sun Sep 23 22:22:13 2007
New Revision: 578659
URL: http://svn.apache.org/viewvc?rev=578659&view=rev
Log:
Performance: If not entity resolver has been registered avoid expanding the system \
identifier.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java?rev=578659&r1=578658&r2=578659&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java Sun Sep 23 \
22:22:13 2007 @@ -678,13 +678,14 @@
baseSystemId = fCurrentEntity.entityLocation.getExpandedSystemId();
if (baseSystemId != null)
needExpand = true;
- }
- if (needExpand)
- expandedSystemId = expandSystemId(literalSystemId, baseSystemId, false);
-
- // give the entity resolver a chance
+ }
+
+ // give the entity resolver a chance
XMLInputSource xmlInputSource = null;
if (fEntityResolver != null) {
+ if (needExpand) {
+ expandedSystemId = expandSystemId(literalSystemId, baseSystemId, \
false); + }
resourceIdentifier.setBaseSystemId(baseSystemId);
resourceIdentifier.setExpandedSystemId(expandedSystemId);
xmlInputSource = fEntityResolver.resolveEntity(resourceIdentifier);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic