Exemplo n.º 1
0
        private    void PushAttValueScanner(XmlScanner scanner, SchemaEntity en) {
            if (_AttValueScannerStack == null) {
                _AttValueScannerStack = new HWStack(STACK_INCREMENT);
            }

            DtdScannerState s = (DtdScannerState)_AttValueScannerStack.Push();
            if (s == null) {
                s = new DtdScannerState();
                _AttValueScannerStack[_AttValueScannerStack.Length-1] = s;
            }
            s._Scanner = _Scanner;
            s._En = en;
            en.IsProcessed = true;
        }
Exemplo n.º 2
0
        private    void PushScanner(XmlScanner scanner, SchemaEntity en, Uri baseUrl) {
            DtdScannerState s;

            if (en != null && _L >= 0 && _HasTerminal) {
                SendValidationEvent(Res.Sch_ParEntityRefNesting, null);
            }

            s = (DtdScannerState)_ScannerStack.Push();
            if (s == null) {
                s = new DtdScannerState();
                _ScannerStack[_ScannerStack.Length-1] = s;
            }
            s._Scanner = _Scanner;
            s._En = en;
            s._IsInternal = _IsInternal;
            s._L = _L;
            s._IncludeDepth = _IncludeDepth;
            s._IgnoreDepth = _IgnoreDepth;
            s._BaseUri = _BaseUri;
            _Scanner = scanner;
            _Scanner.InDTD = true;
            _BaseUri = baseUrl;
            if (en != null) {
                _HasSeenWhiteSpace = en.IsParEntity;
                en.IsProcessed = true;
                if (_IsInternal)
                    _IsInternal = !en.IsExternal;
                _HasSeenContent = !en.IsExternal;
            }
        }