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