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