Ejemplo n.º 1
0
 internal RecordBuilder(RecordOutput output, XmlNameTable nameTable) {
     Debug.Assert(output != null);
     this.output    = output;
     this.nameTable = nameTable != null ? nameTable : new NameTable();
     this.atoms     = new OutKeywords(this.nameTable);
     this.scopeManager   = new OutputScopeManager(this.nameTable, this.atoms);
 }
Ejemplo n.º 2
0
 internal RecordBuilder(IRecordOutput output, XmlNameTable?nameTable)
 {
     Debug.Assert(output != null);
     _output       = output;
     _nameTable    = nameTable != null ? nameTable : new NameTable();
     _atoms        = new OutKeywords(_nameTable);
     _scopeManager = new OutputScopeManager(_nameTable, _atoms);
 }
Ejemplo n.º 3
0
 internal RecordBuilder(RecordOutput output, XmlNameTable nameTable)
 {
     Debug.Assert(output != null);
     this.output       = output;
     this.nameTable    = nameTable != null ? nameTable : new NameTable();
     this.atoms        = new OutKeywords(this.nameTable);
     this.scopeManager = new OutputScopeManager(this.nameTable, this.atoms);
 }
Ejemplo n.º 4
0
 internal RecordBuilder(RecordOutput output, XmlNameTable nameTable)
 {
     Debug.Assert(output != null);
     _output = output;
     _nameTable = nameTable != null ? nameTable : new NameTable();
     _atoms = new OutKeywords(_nameTable);
     _scopeManager = new OutputScopeManager(_nameTable, _atoms);
 }
        internal OutputScopeManager(XmlNameTable nameTable, OutKeywords atoms) {
            Debug.Assert(nameTable != null);
            Debug.Assert(atoms     != null);

            this.elementScopesStack = new HWStack(STACK_INCREMENT);
            this.nameTable          = nameTable;
            this.atoms              = atoms;
            this.defaultNS          = this.atoms.Empty;

            // We always adding rootElementScope to garantee that CurrentElementScope != null
            // This context is active between PI and first element for example
            OutputScope rootElementScope = (OutputScope) this.elementScopesStack.Push();
            if(rootElementScope == null) {
                rootElementScope = new OutputScope();
                this.elementScopesStack.AddToTop(rootElementScope);
            }
            rootElementScope.Init(string.Empty, string.Empty, string.Empty, /*space:*/XmlSpace.None, /*lang:*/string.Empty, /*mixed:*/false);
        }
Ejemplo n.º 6
0
        internal OutputScopeManager(XmlNameTable nameTable, OutKeywords atoms)
        {
            Debug.Assert(nameTable != null);
            Debug.Assert(atoms != null);

            _elementScopesStack = new HWStack(STACK_INCREMENT);
            _nameTable          = nameTable;
            _atoms     = atoms;
            _defaultNS = _atoms.Empty;

            // We always adding rootElementScope to garantee that CurrentElementScope != null
            // This context is active between PI and first element for example
            OutputScope rootElementScope = (OutputScope)_elementScopesStack.Push();

            if (rootElementScope == null)
            {
                rootElementScope = new OutputScope();
                _elementScopesStack.AddToTop(rootElementScope);
            }
            rootElementScope.Init(string.Empty, string.Empty, string.Empty, /*space:*/ XmlSpace.None, /*lang:*/ string.Empty, /*mixed:*/ false);
        }