5 writes to doc
System.Xml (5)
System\Xml\Dom\XmlLoader.cs (5)
26
this.
doc
= doc;
64
this.
doc
= doc;
524
this.
doc
= dtNode.OwnerDocument;
659
this.
doc
= parentNode.OwnerDocument;
763
this.
doc
= eref.OwnerDocument;
98 references to doc
System.Xml (98)
System\Xml\Dom\XmlLoader.cs (98)
98
element =
doc
.CreateElement( r.Prefix, r.LocalName, r.NamespaceURI );
114
parent.AppendChildForLoad( element,
doc
);
122
element.XmlName =
doc
.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo);
137
element.XmlName =
doc
.AddXmlName(element.Prefix, element.LocalName, element.NamespaceURI, schemaInfo);
159
node =
doc
.CreateTextNode( r.Value );
163
node =
doc
.CreateSignificantWhitespace( r.Value );
168
node =
doc
.CreateWhitespace( r.Value );
179
node =
doc
.CreateCDataSection( r.Value );
188
node =
doc
.CreateProcessingInstruction( r.Name, r.Value );
192
node =
doc
.CreateComment( r.Value );
205
parent.AppendChildForLoad( node,
doc
);
230
XmlAttribute attr =
doc
.CreateAttribute(r.Prefix, r.LocalName, r.NamespaceURI);
233
attr.XmlName =
doc
.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo);
239
node =
doc
.CreateTextNode( r.Value );
242
node =
doc
.CreateEntityReference( r.LocalName );
249
node.AppendChildForLoad(
doc
.CreateTextNode(string.Empty),
doc
);
257
attr.AppendChildForLoad( node,
doc
);
267
XmlAttribute attr =
doc
.CreateDefaultAttribute( r.Prefix, r.LocalName, r.NamespaceURI );
270
attr.XmlName =
doc
.AddAttrXmlName(attr.Prefix, attr.LocalName, attr.NamespaceURI, schemaInfo);
289
node = direct ? new XmlText( r.Value,
doc
) :
doc
.CreateTextNode( r.Value );
294
node = direct ? new XmlEntityReference( reader.LocalName,
doc
) :
doc
.CreateEntityReference( reader.LocalName );
301
node.AppendChildForLoad( direct ? new XmlText( string.Empty ) :
doc
.CreateTextNode( string.Empty ),
doc
);
309
parent.AppendChildForLoad( node,
doc
);
316
XmlEntityReference eref = direct ? new XmlEntityReference( reader.Name, this.
doc
) :
doc
.CreateEntityReference( reader.Name );
322
eref.AppendChildForLoad( node,
doc
);
328
eref.AppendChildForLoad(
doc
.CreateTextNode(string.Empty),
doc
);
365
return
doc
.CreateXmlDeclaration( version, encoding, standalone );
386
XmlDocumentType dtNode =
doc
.CreateDocumentType( localName, publicId, systemId, internalSubset );
411
XmlElement element = new XmlElement( reader.Prefix, reader.LocalName, reader.NamespaceURI, this.
doc
);
424
parent.AppendChildForLoad( element,
doc
);
453
node = new XmlSignificantWhitespace( reader.Value, this.
doc
);
458
node = new XmlWhitespace( reader.Value, this.
doc
);
466
node = new XmlText( reader.Value, this.
doc
);
470
node = new XmlCDataSection( reader.Value, this.
doc
);
474
node = new XmlProcessingInstruction( reader.Name, reader.Value, this.
doc
);
478
node = new XmlComment( reader.Value, this.
doc
);
487
parent.AppendChildForLoad( node,
doc
);
502
XmlUnspecifiedAttribute defattr = new XmlUnspecifiedAttribute( r.Prefix, r.LocalName, r.NamespaceURI, this.
doc
);
508
attr = new XmlAttribute( r.Prefix, r.LocalName, r.NamespaceURI, this.
doc
);
525
XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager( this.
doc
.NameTable ), null, null, null, null, this.
doc
.BaseURI, string.Empty, XmlSpace.None);
535
IDtdInfo dtdInfo = dtdParser.ParseFreeFloatingDtd(this.
doc
.BaseURI, dtNode.Name, dtNode.PublicId, dtNode.SystemId, dtNode.InternalSubset, proxy );
548
doc
.DtdSchemaInfo = schInfo;
553
dtNode.Notations.SetNamedItem(new XmlNotation( scNot.Name.Name, scNot.Pubid, scNot.SystemLiteral,
doc
));
560
XmlEntity ent = new XmlEntity( scEnt.Name.Name, scEnt.Text, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name,
doc
);
568
XmlEntity ent = new XmlEntity( scEnt.Name.Name, scEnt.Text, scEnt.Pubid, scEnt.Url, scEnt.NData.IsEmpty ? null : scEnt.NData.Name,
doc
);
573
doc
.Entities = dtNode.Entities;
587
doc
.AddIdInfo(
588
doc
.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null),
589
doc
.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null));
603
XmlDocumentType docType = this.
doc
.DocumentType;
604
String baseURI = this.
doc
.BaseURI;
607
XmlNameTable nt = this.
doc
.NameTable;
612
while ( node != null && node !=
doc
) {
616
if ( attr.Prefix ==
doc
.strXmlns && prefixes.Contains( attr.LocalName ) == false ) {
621
else if ( !bHasDefXmlnsAttr && attr.Prefix.Length == 0 && attr.LocalName ==
doc
.strXmlns ) {
626
else if ( spaceMode == XmlSpace.None && attr.Prefix ==
doc
.strXml && attr.LocalName ==
doc
.strSpace ) {
633
else if ( lang == null && attr.Prefix ==
doc
.strXml && attr.LocalName ==
doc
.strLang ) {
660
Debug.Assert( this.
doc
!= null );
662
this.reader = CreateInnerXmlReader( innerxmltext, nt, pc, this.
doc
);
665
bool bOrigLoading =
doc
.IsLoading;
666
doc
.IsLoading = true;
671
parentNode.AppendChildForLoad( node,
doc
);
677
parentNode.AppendChildForLoad( node,
doc
);
680
doc
.IsLoading = bOrigLoading;
709
if ( attr.Prefix ==
doc
.strXmlns ) {
723
else if ( attr.Prefix.Length == 0 && attr.LocalName ==
doc
.strXmlns ) {
764
bool bOrigLoadingState =
doc
.IsLoading;
765
doc
.IsLoading = true;
768
eref.AppendChildForLoad(
doc
.CreateTextNode( "<" ),
doc
);
769
doc
.IsLoading = bOrigLoadingState;
772
eref.AppendChildForLoad(
doc
.CreateTextNode( ">" ),
doc
);
773
doc
.IsLoading = bOrigLoadingState;
776
eref.AppendChildForLoad(
doc
.CreateTextNode( "&" ),
doc
);
777
doc
.IsLoading = bOrigLoadingState;
780
eref.AppendChildForLoad(
doc
.CreateTextNode( "'" ),
doc
);
781
doc
.IsLoading = bOrigLoadingState;
784
eref.AppendChildForLoad(
doc
.CreateTextNode( "\"" ),
doc
);
785
doc
.IsLoading = bOrigLoadingState;
789
XmlNamedNodeMap entities =
doc
.Entities;
797
if( !(
doc
.ActualLoadingStatus ) ) {
798
eref.AppendChildForLoad(
doc
.CreateTextNode( "" ),
doc
);
799
doc
.IsLoading = bOrigLoadingState;
802
doc
.IsLoading = bOrigLoadingState;