You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/28 19:23:59 UTC

DO NOT REPLY [Bug 14942] New: - Unnecessary systemId resolving

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14942>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14942

Unnecessary systemId resolving

           Summary: Unnecessary systemId resolving
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Non-Validating Parser
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: PeterV@ti.com.od.ua


File: \xercesc\internal\XMLScanner.cpp
Line: 2517
--------------------------------------
I found this bug when set flag to reuse the grammar and unexpectedly (for me) 
was called in resolveEntity() method, asking to resolve (in my case download 
the data from database ) systemId again.

Proposed patch is the following
-----------------------
old:

InputSource* sysIdSrc = resolveSystemId(sysId);
Janitor<InputSource> janSysIdSrc(sysIdSrc);
Grammar* grammar = fGrammarResolver->getGrammar(sysIdSrc->getSystemId());
-----------------------
new

Grammar* grammar = fGrammarResolver->getGrammar(sysId);
-----------------------

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