5 writes to _doc
System.Private.Xml (5)
System\Xml\Dom\XmlLoader.cs (5)
25
_doc
= doc;
70
_doc
= doc;
593
_doc
= dtNode.OwnerDocument;
748
_doc
= parentNode.OwnerDocument;
875
_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);
154
element?.XmlName =
_doc
!.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo);
176
node =
_doc
!.CreateTextNode(r.Value);
180
node =
_doc
!.CreateSignificantWhitespace(r.Value);
186
node =
_doc
!.CreateWhitespace(r.Value);
199
node =
_doc
!.CreateCDataSection(r.Value);
208
node =
_doc
!.CreateProcessingInstruction(r.Name, r.Value);
212
node =
_doc
!.CreateComment(r.Value);
226
parent.AppendChildForLoad(node,
_doc
!);
257
XmlAttribute attr =
_doc
!.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI);
261
attr.XmlName =
_doc
.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo);
270
node =
_doc
.CreateTextNode(r.Value);
273
node =
_doc
.CreateEntityReference(r.LocalName);
282
node.AppendChildForLoad(
_doc
.CreateTextNode(string.Empty),
_doc
);
291
attr.AppendChildForLoad(node,
_doc
);
302
XmlAttribute attr =
_doc
!.CreateDefaultAttribute(r.Prefix, r.LocalName, r.NamespaceURI);
306
attr.XmlName =
_doc
.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo);
327
node = direct ? new XmlText(r.Value,
_doc
!) :
_doc
!.CreateTextNode(r.Value);
332
node = direct ? new XmlEntityReference(_reader!.LocalName,
_doc
!) :
_doc
!.CreateEntityReference(_reader!.LocalName);
341
node.AppendChildForLoad(direct ? new XmlText(string.Empty) :
_doc
!.CreateTextNode(string.Empty),
_doc
!);
349
parent.AppendChildForLoad(node,
_doc
!);
357
XmlEntityReference eref = direct ? new XmlEntityReference(_reader.Name,
_doc
!) :
_doc
!.CreateEntityReference(_reader.Name);
366
eref.AppendChildForLoad(node,
_doc
!);
372
eref.AppendChildForLoad(
_doc
!.CreateTextNode(string.Empty),
_doc
);
412
return
_doc
!.CreateXmlDeclaration(version!, encoding, standalone);
436
XmlDocumentType dtNode =
_doc
!.CreateDocumentType(localName, publicId, systemId, internalSubset);
465
XmlElement element = new XmlElement(_reader.Prefix, _reader.LocalName, _reader.NamespaceURI,
_doc
!);
481
parent!.AppendChildForLoad(element,
_doc
!);
513
node = new XmlSignificantWhitespace(_reader!.Value,
_doc
!);
519
node = new XmlWhitespace(_reader!.Value,
_doc
!);
528
node = new XmlText(_reader!.Value,
_doc
!);
532
node = new XmlCDataSection(_reader!.Value,
_doc
!);
536
node = new XmlProcessingInstruction(_reader!.Name, _reader.Value,
_doc
!);
540
node = new XmlComment(_reader!.Value,
_doc
!);
550
parent.AppendChildForLoad(node,
_doc
!);
568
XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute(r.Prefix, r.LocalName, r.NamespaceURI,
_doc
!);
575
attr = new XmlAttribute(r.Prefix, r.LocalName, r.NamespaceURI,
_doc
!);
594
XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(
_doc
!.NameTable), null, null, null, null,
_doc
.BaseURI, string.Empty, XmlSpace.None);
605
IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(
_doc
.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy);
621
_doc
!.DtdSchemaInfo = schInfo;
628
dtNode.Notations.SetNamedItem(new XmlNotation(scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral,
_doc
));
637
XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name,
_doc
);
647
XmlEntity ent = new XmlEntity(scEnt.Name.Name, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name,
_doc
);
652
_doc
.Entities = dtNode.Entities;
666
_doc
.AddIdInfo(
667
_doc
.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null),
668
_doc
.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null));
682
XmlDocumentType? docType =
_doc
!.DocumentType;
683
string baseURI =
_doc
.BaseURI;
686
XmlNameTable nt =
_doc
.NameTable;
691
while (node != null && node !=
_doc
)
699
if (attr.Prefix ==
_doc
.strXmlns && !prefixes.Contains(attr.LocalName))
705
else if (!bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName ==
_doc
.strXmlns)
711
else if (spaceMode == XmlSpace.None && attr.Prefix ==
_doc
.strXml && attr.LocalName ==
_doc
.strSpace)
719
else if (lang == null && attr.Prefix ==
_doc
.strXml && attr.LocalName ==
_doc
.strLang)
749
Debug.Assert(
_doc
!= null);
751
_reader = CreateInnerXmlReader(innerxmltext, nt, pc,
_doc
);
755
bool bOrigLoading =
_doc
.IsLoading;
756
_doc
.IsLoading = true;
763
parentNode.AppendChildForLoad(node,
_doc
);
771
parentNode.AppendChildForLoad(node,
_doc
);
775
_doc
.IsLoading = bOrigLoading;
811
if (attr.Prefix ==
_doc
!.strXmlns)
828
else if (attr.Prefix.Length == 0 && attr.LocalName ==
_doc
.strXmlns)
876
bool bOrigLoadingState =
_doc
!.IsLoading;
877
_doc
.IsLoading = true;
881
eref.AppendChildForLoad(
_doc
.CreateTextNode("<"),
_doc
);
882
_doc
.IsLoading = bOrigLoadingState;
885
eref.AppendChildForLoad(
_doc
.CreateTextNode(">"),
_doc
);
886
_doc
.IsLoading = bOrigLoadingState;
889
eref.AppendChildForLoad(
_doc
.CreateTextNode("&"),
_doc
);
890
_doc
.IsLoading = bOrigLoadingState;
893
eref.AppendChildForLoad(
_doc
.CreateTextNode("'"),
_doc
);
894
_doc
.IsLoading = bOrigLoadingState;
897
eref.AppendChildForLoad(
_doc
.CreateTextNode("\""),
_doc
);
898
_doc
.IsLoading = bOrigLoadingState;
902
XmlNamedNodeMap entities =
_doc
.Entities;
912
if (!(
_doc
.ActualLoadingStatus))
914
eref.AppendChildForLoad(
_doc
.CreateTextNode(""),
_doc
);
915
_doc
.IsLoading = bOrigLoadingState;
919
_doc
.IsLoading = bOrigLoadingState;