5 writes to _doc
System.Private.Xml (5)
System\Xml\Dom\XmlLoader.cs (5)
25_doc = doc; 70_doc = doc; 595_doc = dtNode.OwnerDocument; 750_doc = parentNode.OwnerDocument; 877_doc = eref.OwnerDocument;
98 references to _doc
System.Private.Xml (98)
System\Xml\Dom\XmlLoader.cs (98)
110element = _doc!.CreateElement(r.Prefix, r.LocalName, r.NamespaceURI); 128parent?.AppendChildForLoad(element, _doc); 137element.XmlName = _doc.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 155element.XmlName = _doc!.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 178node = _doc!.CreateTextNode(r.Value); 182node = _doc!.CreateSignificantWhitespace(r.Value); 188node = _doc!.CreateWhitespace(r.Value); 201node = _doc!.CreateCDataSection(r.Value); 210node = _doc!.CreateProcessingInstruction(r.Name, r.Value); 214node = _doc!.CreateComment(r.Value); 228parent.AppendChildForLoad(node, _doc!); 259XmlAttribute attr = _doc!.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 263attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 272node = _doc.CreateTextNode(r.Value); 275node = _doc.CreateEntityReference(r.LocalName); 284node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 293attr.AppendChildForLoad(node, _doc); 304XmlAttribute attr = _doc!.CreateDefaultAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 308attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 329node = direct ? new XmlText(r.Value, _doc!) : _doc!.CreateTextNode(r.Value); 334node = direct ? new XmlEntityReference(_reader!.LocalName, _doc!) : _doc!.CreateEntityReference(_reader!.LocalName); 343node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc!.CreateTextNode(string.Empty), _doc!); 351parent.AppendChildForLoad(node, _doc!); 359XmlEntityReference eref = direct ? new XmlEntityReference(_reader.Name, _doc!) : _doc!.CreateEntityReference(_reader.Name); 368eref.AppendChildForLoad(node, _doc!); 374eref.AppendChildForLoad(_doc!.CreateTextNode(string.Empty), _doc); 414return _doc!.CreateXmlDeclaration(version!, encoding, standalone); 438XmlDocumentType dtNode = _doc!.CreateDocumentType(localName, publicId, systemId, internalSubset); 467XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc!); 483parent!.AppendChildForLoad(element, _doc!); 515node = new XmlSignificantWhitespace(_reader!.Value, _doc!); 521node = new XmlWhitespace(_reader!.Value, _doc!); 530node = new XmlText(_reader!.Value, _doc!); 534node = new XmlCDataSection(_reader!.Value, _doc!); 538node = new XmlProcessingInstruction(_reader!.Name, _reader.Value, _doc!); 542node = new XmlComment(_reader!.Value, _doc!); 552parent.AppendChildForLoad(node, _doc!); 570XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 577attr = new XmlAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc!); 596XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc!.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 607IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(_doc.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy); 623_doc!.DtdSchemaInfo = schInfo; 630dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc)); 639XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 649XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 654_doc.Entities = dtNode.Entities; 668_doc.AddIdInfo( 669_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 670_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 684XmlDocumentType? docType = _doc!.DocumentType; 685string baseURI = _doc.BaseURI; 688XmlNameTable nt = _doc.NameTable; 693while (node != null && node != _doc) 701if (attr.Prefix == _doc.strXmlns && !prefixes.Contains(attr.LocalName)) 707else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 713else if (spaceMode == XmlSpace.None && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strSpace) 721else if (lang == null && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strLang) 751Debug.Assert(_doc != null); 753_reader = CreateInnerXmlReader(innerxmltext, nt, pc, _doc); 757bool bOrigLoading = _doc.IsLoading; 758_doc.IsLoading = true; 765parentNode.AppendChildForLoad(node, _doc); 773parentNode.AppendChildForLoad(node, _doc); 777_doc.IsLoading = bOrigLoading; 813if (attr.Prefix == _doc!.strXmlns) 830else if (attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 878bool bOrigLoadingState = _doc!.IsLoading; 879_doc.IsLoading = true; 883eref.AppendChildForLoad(_doc.CreateTextNode("<"), _doc); 884_doc.IsLoading = bOrigLoadingState; 887eref.AppendChildForLoad(_doc.CreateTextNode(">"), _doc); 888_doc.IsLoading = bOrigLoadingState; 891eref.AppendChildForLoad(_doc.CreateTextNode("&"), _doc); 892_doc.IsLoading = bOrigLoadingState; 895eref.AppendChildForLoad(_doc.CreateTextNode("'"), _doc); 896_doc.IsLoading = bOrigLoadingState; 899eref.AppendChildForLoad(_doc.CreateTextNode("\""), _doc); 900_doc.IsLoading = bOrigLoadingState; 904XmlNamedNodeMap entities = _doc.Entities; 914if (!(_doc.ActualLoadingStatus)) 916eref.AppendChildForLoad(_doc.CreateTextNode(""), _doc); 917_doc.IsLoading = bOrigLoadingState; 921_doc.IsLoading = bOrigLoadingState;