diff --git a/src/wrapxerces.cpp b/src/wrapxerces.cpp index 2712471..7302b2b 100644 --- a/src/wrapxerces.cpp +++ b/src/wrapxerces.cpp @@ -271,6 +271,9 @@ InputSource *WrapXerces::resolveEntity ( return new LocalFileInputSource ( ( const XMLCh * ) WrapXerces::toString ( file ).GetData() ); + if (systemId.empty() && publicId.empty()) + return NULL; + wxString fileURL = WrapLibxml::FileNameToURL ( fileName ); return new URLInputSource ( ( const XMLCh * ) WrapXerces::toString ( fileURL ).GetData()