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/09/24 07:22:14 UTC
svn commit: r578659 -
/xerces/java/trunk/src/org/apache/xerces/impl/XMLEntityManager.java
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