5 writes to _doc
System.Private.Xml (5)
System\Xml\Dom\XmlLoader.cs (5)
25_doc = doc; 70_doc = doc; 596_doc = dtNode.OwnerDocument; 751_doc = parentNode.OwnerDocument; 878_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); 156element.XmlName = _doc!.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 179node = _doc!.CreateTextNode(r.Value); 183node = _doc!.CreateSignificantWhitespace(r.Value); 189node = _doc!.CreateWhitespace(r.Value); 202node = _doc!.CreateCDataSection(r.Value); 211node = _doc!.CreateProcessingInstruction(r.Name, r.Value); 215node = _doc!.CreateComment(r.Value); 229parent.AppendChildForLoad(node, _doc!); 260XmlAttribute attr = _doc!.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 264attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 273node = _doc.CreateTextNode(r.Value); 276node = _doc.CreateEntityReference(r.LocalName); 285node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 294attr.AppendChildForLoad(node, _doc); 305XmlAttribute attr = _doc!.CreateDefaultAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 309attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 330node = direct ? new XmlText(r.Value, _doc!) : _doc!.CreateTextNode(r.Value); 335node = direct ? new XmlEntityReference(_reader!.LocalName, _doc!) : _doc!.CreateEntityReference(_reader!.LocalName); 344node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc!.CreateTextNode(string.Empty), _doc!); 352parent.AppendChildForLoad(node, _doc!); 360XmlEntityReference eref = direct ? new XmlEntityReference(_reader.Name, _doc!) : _doc!.CreateEntityReference(_reader.Name); 369eref.AppendChildForLoad(node, _doc!); 375eref.AppendChildForLoad(_doc!.CreateTextNode(string.Empty), _doc); 415return _doc!.CreateXmlDeclaration(version!, encoding, standalone); 439XmlDocumentType dtNode = _doc!.CreateDocumentType(localName, publicId, systemId, internalSubset); 468XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!); 484parent!.AppendChildForLoad(element, _doc!); 516node = new XmlSignificantWhitespace(_reader!.Value, _doc!); 522node = new XmlWhitespace(_reader!.Value, _doc!); 531node = new XmlText(_reader!.Value, _doc!); 535node = new XmlCDataSection(_reader!.Value, _doc!); 539node = new XmlProcessingInstruction(_reader!.Name, _reader.Value, _doc!); 543node = new XmlComment(_reader!.Value, _doc!); 553parent.AppendChildForLoad(node, _doc!); 571XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 578attr = new XmlAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 597XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc!.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 608IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(_doc.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy); 624_doc!.DtdSchemaInfo = schInfo; 631dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc)); 640XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 650XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 655_doc.Entities = dtNode.Entities; 669_doc.AddIdInfo( 670_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 671_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 685XmlDocumentType? docType = _doc!.DocumentType; 686string baseURI = _doc.BaseURI; 689XmlNameTable nt = _doc.NameTable; 694while (node != null && node != _doc) 702if (attr.Prefix == _doc.strXmlns && !prefixes.Contains(attr.LocalName)) 708else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 714else if (spaceMode == XmlSpace.None && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strSpace) 722else if (lang == null && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strLang) 752Debug.Assert(_doc != null); 754_reader = CreateInnerXmlReader(innerxmltext, nt, pc, _doc); 758bool bOrigLoading = _doc.IsLoading; 759_doc.IsLoading = true; 766parentNode.AppendChildForLoad(node, _doc); 774parentNode.AppendChildForLoad(node, _doc); 778_doc.IsLoading = bOrigLoading; 814if (attr.Prefix == _doc!.strXmlns) 831else if (attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 879bool bOrigLoadingState = _doc!.IsLoading; 880_doc.IsLoading = true; 884eref.AppendChildForLoad(_doc.CreateTextNode("<"), _doc); 885_doc.IsLoading = bOrigLoadingState; 888eref.AppendChildForLoad(_doc.CreateTextNode(">"), _doc); 889_doc.IsLoading = bOrigLoadingState; 892eref.AppendChildForLoad(_doc.CreateTextNode("&"), _doc); 893_doc.IsLoading = bOrigLoadingState; 896eref.AppendChildForLoad(_doc.CreateTextNode("'"), _doc); 897_doc.IsLoading = bOrigLoadingState; 900eref.AppendChildForLoad(_doc.CreateTextNode("\""), _doc); 901_doc.IsLoading = bOrigLoadingState; 905XmlNamedNodeMap entities = _doc.Entities; 915if (!(_doc.ActualLoadingStatus)) 917eref.AppendChildForLoad(_doc.CreateTextNode(""), _doc); 918_doc.IsLoading = bOrigLoadingState; 922_doc.IsLoading = bOrigLoadingState;