internal InputSource resolveEntity(bool isPE, string name, InputSource inp, string baseURI) { InputSource source; // external entities might be skipped if (isPE && !extPE) { return(null); } if (!isPE && !extGE) { return(null); } // ... or not lexicalHandler.StartEntity(name); source = entityResolver.ResolveEntity(name, inp.PublicId, baseURI, inp.SystemId); if (source == null) { inp.SystemId = absolutize(baseURI, inp.SystemId, false); source = inp; } startExternalEntity(name, source.SystemId, true); return(source); }
public virtual void StartEntity(string name) { if (lexicalHandler != null) { lexicalHandler.StartEntity(name); } }