5 writes to _doc
System.Private.Xml (5)
System\Xml\Dom\XmlLoader.cs (5)
25_doc = doc; 70_doc = doc; 593_doc = dtNode.OwnerDocument; 748_doc = parentNode.OwnerDocument; 875_doc = eref.OwnerDocument;
98 references to _doc
System.Private.Xml (98)
System\Xml\Dom\XmlLoader.cs (98)
111element = _doc!.CreateElement(r.Prefix, r.LocalName, r.NamespaceURI); 129parent?.AppendChildForLoad(element, _doc); 138element.XmlName = _doc.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 154element?.XmlName = _doc!.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 176node = _doc!.CreateTextNode(r.Value); 180node = _doc!.CreateSignificantWhitespace(r.Value); 186node = _doc!.CreateWhitespace(r.Value); 199node = _doc!.CreateCDataSection(r.Value); 208node = _doc!.CreateProcessingInstruction(r.Name, r.Value); 212node = _doc!.CreateComment(r.Value); 226parent.AppendChildForLoad(node, _doc!); 257XmlAttribute attr = _doc!.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 261attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 270node = _doc.CreateTextNode(r.Value); 273node = _doc.CreateEntityReference(r.LocalName); 282node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 291attr.AppendChildForLoad(node, _doc); 302XmlAttribute attr = _doc!.CreateDefaultAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 306attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 327node = direct ? new XmlText(r.Value, _doc!) : _doc!.CreateTextNode(r.Value); 332node = direct ? new XmlEntityReference(_reader!.LocalName, _doc!) : _doc!.CreateEntityReference(_reader!.LocalName); 341node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc!.CreateTextNode(string.Empty), _doc!); 349parent.AppendChildForLoad(node, _doc!); 357XmlEntityReference eref = direct ? new XmlEntityReference(_reader.Name, _doc!) : _doc!.CreateEntityReference(_reader.Name); 366eref.AppendChildForLoad(node, _doc!); 372eref.AppendChildForLoad(_doc!.CreateTextNode(string.Empty), _doc); 412return _doc!.CreateXmlDeclaration(version!, encoding, standalone); 436XmlDocumentType dtNode = _doc!.CreateDocumentType(localName, publicId, systemId, internalSubset); 465XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!); 481parent!.AppendChildForLoad(element, _doc!); 513node = new XmlSignificantWhitespace(_reader!.Value, _doc!); 519node = new XmlWhitespace(_reader!.Value, _doc!); 528node = new XmlText(_reader!.Value, _doc!); 532node = new XmlCDataSection(_reader!.Value, _doc!); 536node = new XmlProcessingInstruction(_reader!.Name, _reader.Value, _doc!); 540node = new XmlComment(_reader!.Value, _doc!); 550parent.AppendChildForLoad(node, _doc!); 568XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 575attr = new XmlAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 594XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc!.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 605IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(_doc.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy); 621_doc!.DtdSchemaInfo = schInfo; 628dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc)); 637XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 647XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 652_doc.Entities = dtNode.Entities; 666_doc.AddIdInfo( 667_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 668_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 682XmlDocumentType? docType = _doc!.DocumentType; 683string baseURI = _doc.BaseURI; 686XmlNameTable nt = _doc.NameTable; 691while (node != null && node != _doc) 699if (attr.Prefix == _doc.strXmlns && !prefixes.Contains(attr.LocalName)) 705else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 711else if (spaceMode == XmlSpace.None && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strSpace) 719else if (lang == null && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strLang) 749Debug.Assert(_doc != null); 751_reader = CreateInnerXmlReader(innerxmltext, nt, pc, _doc); 755bool bOrigLoading = _doc.IsLoading; 756_doc.IsLoading = true; 763parentNode.AppendChildForLoad(node, _doc); 771parentNode.AppendChildForLoad(node, _doc); 775_doc.IsLoading = bOrigLoading; 811if (attr.Prefix == _doc!.strXmlns) 828else if (attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 876bool bOrigLoadingState = _doc!.IsLoading; 877_doc.IsLoading = true; 881eref.AppendChildForLoad(_doc.CreateTextNode("<"), _doc); 882_doc.IsLoading = bOrigLoadingState; 885eref.AppendChildForLoad(_doc.CreateTextNode(">"), _doc); 886_doc.IsLoading = bOrigLoadingState; 889eref.AppendChildForLoad(_doc.CreateTextNode("&"), _doc); 890_doc.IsLoading = bOrigLoadingState; 893eref.AppendChildForLoad(_doc.CreateTextNode("'"), _doc); 894_doc.IsLoading = bOrigLoadingState; 897eref.AppendChildForLoad(_doc.CreateTextNode("\""), _doc); 898_doc.IsLoading = bOrigLoadingState; 902XmlNamedNodeMap entities = _doc.Entities; 912if (!(_doc.ActualLoadingStatus)) 914eref.AppendChildForLoad(_doc.CreateTextNode(""), _doc); 915_doc.IsLoading = bOrigLoadingState; 919_doc.IsLoading = bOrigLoadingState;