5 writes to _doc
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (5)
29_doc = doc; 74_doc = doc; 598_doc = dtNode.OwnerDocument; 757_doc = parentNode.OwnerDocument; 881_doc = eref.OwnerDocument;
98 references to _doc
dotnet-svcutil-lib (98)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (98)
113element = _doc.CreateElement(r.Prefix, r.LocalName, r.NamespaceURI); 133parent.AppendChildForLoad(element, _doc); 143element.XmlName = _doc.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 161element.XmlName = _doc.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo); 184node = _doc.CreateTextNode(r.Value); 188node = _doc.CreateSignificantWhitespace(r.Value); 194node = _doc.CreateWhitespace(r.Value); 207node = _doc.CreateCDataSection(r.Value); 216node = _doc.CreateProcessingInstruction(r.Name, r.Value); 220node = _doc.CreateComment(r.Value); 234parent.AppendChildForLoad(node, _doc); 264XmlAttribute attr = _doc.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 268attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 276node = _doc.CreateTextNode(r.Value); 279node = _doc.CreateEntityReference(r.LocalName); 288node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 296attr.AppendChildForLoad(node, _doc); 307XmlAttribute attr = _doc.CreateDefaultAttribute(r.Prefix, r.LocalName, r.NamespaceURI); 311attr.XmlName = _doc.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo); 333node = direct ? new XmlText(r.Value, _doc) : _doc.CreateTextNode(r.Value); 338node = direct ? new XmlEntityReference(_reader.LocalName, _doc) : _doc.CreateEntityReference(_reader.LocalName); 347node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc.CreateTextNode(string.Empty), _doc); 355parent.AppendChildForLoad(node, _doc); 363XmlEntityReference eref = direct ? new XmlEntityReference(_reader.Name, _doc) : _doc.CreateEntityReference(_reader.Name); 372eref.AppendChildForLoad(node, _doc); 378eref.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 418return _doc.CreateXmlDeclaration(version, encoding, standalone); 442XmlDocumentType dtNode = _doc.CreateDocumentType(localName, publicId, systemId, internalSubset); 471XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI, _doc); 487parent.AppendChildForLoad(element, _doc); 518node = new XmlSignificantWhitespace(_reader.Value, _doc); 524node = new XmlWhitespace(_reader.Value, _doc); 533node = new XmlText(_reader.Value, _doc); 537node = new XmlCDataSection(_reader.Value, _doc); 541node = new XmlProcessingInstruction(_reader.Name, _reader.Value, _doc); 545node = new XmlComment(_reader.Value, _doc); 555parent.AppendChildForLoad(node, _doc); 573XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc); 580attr = new XmlAttribute(r.Prefix, r.LocalName, r.NamespaceURI, _doc); 599XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 610IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(_doc.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy); 626_doc.DtdSchemaInfo = schInfo; 633dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral, _doc)); 642XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Text, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 652XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Text, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name, _doc); 657_doc.Entities = dtNode.Entities; 676_doc.AddIdInfo( 677_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 678_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 693XmlDocumentType docType = _doc.DocumentType; 694String baseURI = _doc.BaseURI; 697XmlNameTable nt = _doc.NameTable; 702while (node != null && node != _doc) 709if (attr.Prefix == _doc.strXmlns && prefixes.Contains(attr.LocalName) == false) 715else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 721else if (spaceMode == XmlSpace.None && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strSpace) 729else if (lang == null && attr.Prefix == _doc.strXml && attr.LocalName == _doc.strLang) 758Debug.Assert(_doc != null); 760_reader = CreateInnerXmlReader(innerxmltext, nt, pc, _doc); 764bool bOrigLoading = _doc.IsLoading; 765_doc.IsLoading = true; 772parentNode.AppendChildForLoad(node, _doc); 780parentNode.AppendChildForLoad(node, _doc); 783_doc.IsLoading = bOrigLoading; 818if (attr.Prefix == _doc.strXmlns) 835else if (attr.Prefix.Length == 0 && attr.LocalName == _doc.strXmlns) 882bool bOrigLoadingState = _doc.IsLoading; 883_doc.IsLoading = true; 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; 903eref.AppendChildForLoad(_doc.CreateTextNode("\""), _doc); 904_doc.IsLoading = bOrigLoadingState; 908XmlNamedNodeMap entities = _doc.Entities; 918if (!(_doc.ActualLoadingStatus)) 920eref.AppendChildForLoad(_doc.CreateTextNode(""), _doc); 921_doc.IsLoading = bOrigLoadingState; 925_doc.IsLoading = bOrigLoadingState;