コード例 #1
0
        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);
        }
コード例 #2
0
 public virtual void StartEntity(string name)
 {
     if (lexicalHandler != null)
     {
         lexicalHandler.StartEntity(name);
     }
 }