15 overrides of NodeType
System.Private.Xml (15)
System\Xml\Dom\XmlAttribute.cs (1)
94
public override XmlNodeType
NodeType
System\Xml\Dom\XmlCDataSection.cs (1)
36
public override XmlNodeType
NodeType
System\Xml\Dom\XmlComment.cs (1)
29
public override XmlNodeType
NodeType
System\Xml\Dom\XmlDeclaration.cs (1)
152
public override XmlNodeType
NodeType
System\Xml\Dom\XmlDocument.cs (1)
356
public override XmlNodeType
NodeType
System\Xml\Dom\XmlDocumentFragment.cs (1)
69
public override XmlNodeType
NodeType
System\Xml\Dom\XmlDocumentType.cs (1)
53
public override XmlNodeType
NodeType
System\Xml\Dom\XmlElement.cs (1)
110
public override XmlNodeType
NodeType
System\Xml\Dom\XmlEntity.cs (1)
103
public override XmlNodeType
NodeType
System\Xml\Dom\XmlEntityReference.cs (1)
76
public override XmlNodeType
NodeType
System\Xml\Dom\XmlNotation.cs (1)
36
public override XmlNodeType
NodeType
System\Xml\Dom\XmlProcessingInstruction.cs (1)
77
public override XmlNodeType
NodeType
=> XmlNodeType.ProcessingInstruction;
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
37
public override XmlNodeType
NodeType
System\Xml\Dom\XmlText.cs (1)
40
public override XmlNodeType
NodeType
System\Xml\Dom\XmlWhitespace.cs (1)
38
public override XmlNodeType
NodeType
330 references to NodeType
Microsoft.Build (22)
Construction\ProjectElement.cs (2)
369
if (XmlElement.ChildNodes.Count == 1 && XmlElement.FirstChild.
NodeType
== XmlNodeType.Text)
407
if (element.XmlElement.ChildNodes.Count == 1 && element.XmlElement.FirstChild.
NodeType
== XmlNodeType.Text)
Construction\ProjectElementContainer.cs (6)
530
if (referenceSibling.XmlElement.PreviousSibling?.
NodeType
== XmlNodeType.Whitespace)
546
if (child.XmlElement.PreviousSibling?.
NodeType
== XmlNodeType.Whitespace)
561
if (XmlElement.FirstChild.
NodeType
== XmlNodeType.Whitespace)
580
if (xmlElement.PreviousSibling?.
NodeType
!= XmlNodeType.Whitespace)
616
if (previousSibling?.
NodeType
== XmlNodeType.Whitespace)
628
if (XmlElement.ChildNodes.Cast<XmlNode>().All(c => c.
NodeType
== XmlNodeType.Whitespace))
Construction\Solution\ProjectInSolution.cs (1)
318
if (childNode.
NodeType
== XmlNodeType.Element)
Evaluation\Preprocessor.cs (6)
228
if (child.
NodeType
== XmlNodeType.XmlDeclaration)
235
child.
NodeType
== XmlNodeType.Element &&
275
if (child.
NodeType
== XmlNodeType.Element && String.Equals(XMakeElements.import, child.Name, StringComparison.Ordinal))
285
string projectSdk = source.
NodeType
== XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty;
333
if (child.
NodeType
== XmlNodeType.Element && String.Equals(XMakeElements.importGroup, child.Name, StringComparison.Ordinal))
350
if (clone.
NodeType
== XmlNodeType.Element && String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal) && clone.Attributes?[XMakeAttributes.sdk] != null)
Evaluation\ProjectParser.cs (1)
632
if (childElement.ChildNodes.Count == 1 && childElement.FirstChild.
NodeType
== XmlNodeType.Text)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
138
if (xml.XmlElement.ChildNodes.Count == 1 && xml.XmlElement.FirstChild.
NodeType
== XmlNodeType.Text)
SolutionConfiguration.cs (1)
74
if (dependencyNode.
NodeType
!= XmlNodeType.Element)
Utilities\Utilities.cs (2)
199
if (node.ChildNodes.Count == 1 && (node.FirstChild.
NodeType
== XmlNodeType.Text || node.FirstChild.
NodeType
== XmlNodeType.CDATA))
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (2)
80
switch (child.
NodeType
)
91
if (child.
NodeType
== XmlNodeType.Text && String.IsNullOrWhiteSpace(child.InnerText))
Microsoft.Build.Tasks.Core (16)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1238
if (nextNode.
NodeType
== XmlNodeType.Element)
CodeTaskFactory.cs (2)
532
switch (childNode.
NodeType
)
579
if (nodeType == childNode.
NodeType
)
ManifestUtil\SecurityUtil.cs (1)
428
if (xn.
NodeType
== XmlNodeType.Element)
ManifestUtil\TrustInfo.cs (2)
123
permissionSetElement.ParentNode.
NodeType
== XmlNodeType.Document)
268
if (previousNode?.
NodeType
== XmlNodeType.Comment)
ManifestUtil\XmlUtil.cs (2)
49
if (node.
NodeType
== XmlNodeType.Element)
54
else if (node.
NodeType
== XmlNodeType.Comment)
SolutionConfiguration.cs (1)
74
if (dependencyNode.
NodeType
!= XmlNodeType.Element)
XamlTaskFactory\RelationsParser.cs (7)
354
if (node.
NodeType
== XmlNodeType.Element)
435
if (child.
NodeType
== XmlNodeType.Element)
593
(node.
NodeType
!= XmlNodeType.Comment) &&
594
(node.
NodeType
!= XmlNodeType.Whitespace) &&
595
(node.
NodeType
!= XmlNodeType.XmlDeclaration) &&
596
(node.
NodeType
!= XmlNodeType.ProcessingInstruction) &&
597
(node.
NodeType
!= XmlNodeType.DocumentType)
Microsoft.Build.Utilities.Core (2)
PlatformManifest.cs (1)
111
if (childNode.
NodeType
== XmlNodeType.Element &&
SDKManifest.cs (1)
330
if (childNode.
NodeType
== XmlNodeType.Element &&
PresentationFramework (3)
MS\Internal\Globalization\BamlTreeMap.cs (1)
652
if (node.
NodeType
== XmlNodeType.Element)
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
478
if (node.
NodeType
== XmlNodeType.Text)
488
else if (node.
NodeType
== XmlNodeType.Element)
PresentationFramework-SystemXml (2)
SystemXmlExtension.cs (2)
149
if (node.
NodeType
== XmlNodeType.Element)
153
if (node.ChildNodes[i].
NodeType
== XmlNodeType.Text)
ReachFramework (5)
PrintConfig\PrtTicket_Base.cs (2)
824
(valueNode.FirstChild.
NodeType
!= XmlNodeType.Text))
1296
(valueNode.FirstChild.
NodeType
!= XmlNodeType.Text))
PrintConfig\PrtTicket_Editor.cs (3)
101
if ((rootChild.
NodeType
!= XmlNodeType.Element) ||
249
if ((child.
NodeType
!= XmlNodeType.Element) ||
313
if ((child.
NodeType
!= XmlNodeType.Element) ||
System.Configuration.ConfigurationManager (7)
System\Configuration\DpapiProtectedConfigurationProvider.cs (2)
20
if (encryptedNode.
NodeType
!= XmlNodeType.Element ||
107
if (child.
NodeType
!= XmlNodeType.Element)
System\Configuration\HandlerBase.cs (3)
151
if (node.
NodeType
!= XmlNodeType.Element)
159
if (node.
NodeType
== XmlNodeType.Comment || node.
NodeType
== XmlNodeType.Whitespace)
System\Configuration\LocalFileSettingsProvider.cs (1)
472
if (child.
NodeType
== XmlNodeType.XmlDeclaration)
System\Configuration\RuntimeConfigurationRecord.cs (1)
135
if (xmlNode.
NodeType
== XmlNodeType.Element) CheckForLockAttributes(sectionName, child);
System.Data.Common (81)
System\Data\XmlDataLoader.cs (11)
103
if (n.
NodeType
== XmlNodeType.Element)
142
while (n != null && (n.
NodeType
== XmlNodeType.Whitespace || !IsTextLikeNode(n.
NodeType
)))
149
if (IsTextLikeNode(n.
NodeType
) && (n.NextSibling == null || !IsTextLikeNode(n.
NodeType
)))
157
while (n != null && IsTextLikeNode(n.
NodeType
))
176
while (n.
NodeType
== XmlNodeType.Whitespace)
179
if (IsTextLikeNode(n.
NodeType
) && (n.NextSibling == null || !IsTextLikeNode(n.
NodeType
)))
188
while (n != null && IsTextLikeNode(n.
NodeType
))
398
if (n.
NodeType
== XmlNodeType.Element)
System\Data\XmlToDatasetMap.cs (3)
441
XmlNode? nodeRegion = (node.
NodeType
== XmlNodeType.Attribute) ? ((XmlAttribute)node).OwnerElement : node.ParentNode;
445
if (nodeRegion == null || nodeRegion.
NodeType
!= XmlNodeType.Element)
479
if (node.
NodeType
== XmlNodeType.Element)
System\Xml\DataPointer.cs (9)
297
else if (_node.
NodeType
== XmlNodeType.Attribute)
320
if (_column == null && _node.
NodeType
== XmlNodeType.Element)
347
if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.
NodeType
== XmlNodeType.Element)
384
return _node.
NodeType
;
415
if (IsLocalNameEmpty(_node.
NodeType
))
473
if (IsLocalNameEmpty(_node.
NodeType
))
609
if (_node.
NodeType
== XmlNodeType.Element)
624
if (_node != null && _column == null && _node.
NodeType
== XmlNodeType.Attribute)
768
if (child != null && child.
NodeType
== XmlNodeType.XmlDeclaration)
System\Xml\DataSetMappper.cs (8)
138
if (n.
NodeType
== XmlNodeType.Element)
169
if (node.
NodeType
== XmlNodeType.Attribute && mt == MappingType.Attribute)
174
if (node.
NodeType
== XmlNodeType.Element && mt == MappingType.Element)
224
if (node.
NodeType
== XmlNodeType.Attribute)
279
if (fc == null || fc.
NodeType
!= XmlNodeType.Text || fc.NextSibling != null)
291
if (n.
NodeType
!= XmlNodeType.Element)
324
if (fc == null || fc.
NodeType
!= XmlNodeType.Text || fc.NextSibling != null)
334
if (n.
NodeType
!= XmlNodeType.Element)
System\Xml\RegionIterator.cs (4)
123
Debug.Assert(CurrentNode.
NodeType
== XmlNodeType.Element);
126
if (CurrentNode.
NodeType
== XmlNodeType.Element && DataSetMapper.GetTableSchemaForElement((XmlElement)(CurrentNode)) != null)
169
while (n.
NodeType
== XmlNodeType.Whitespace)
190
if (n.
NodeType
!= XmlNodeType.Whitespace)
System\Xml\XmlDataDocument.cs (11)
764
if (node.
NodeType
!= XmlNodeType.Element)
997
if (newNode.
NodeType
== XmlNodeType.Element)
1086
switch (n.
NodeType
)
1515
if (iter.CurrentNode!.
NodeType
== XmlNodeType.Element)
2275
Debug.Assert(parent.
NodeType
!= XmlNodeType.Attribute); // We need to get the grand-parent region
2330
while (n != null && n.
NodeType
== XmlNodeType.Whitespace)
2335
if (n.
NodeType
== XmlNodeType.Text)
2947
if (XPathNodePointer.XmlNodeTypeToXpathNodeTypeMap[(int)(node.
NodeType
)] == -1)
2950
if (Helpers.IsTextNode(node.
NodeType
))
2953
if (parent != null && parent.
NodeType
== XmlNodeType.Attribute)
2966
while (prevSib != null && Helpers.IsTextNode(prevSib.
NodeType
))
System\Xml\XPathNodePointer.cs (35)
51
Debug.Assert(XmlDataDocument.Helpers.IsTextNode(node.
NodeType
));
56
switch (n.
NodeType
)
76
if (XmlDataDocument.Helpers.IsTextNode(node.
NodeType
))
79
int xnt = XmlNodeTypeToXpathNodeTypeMap[(int)(node.
NodeType
)];
134
if (_node.
NodeType
== XmlNodeType.Element)
190
XmlNodeType nt = _node.
NodeType
;
219
XmlNodeType nt = _node.
NodeType
;
290
if (IsNamespaceNode(_node.
NodeType
, _node.NamespaceURI))
311
if (XmlDataDocument.Helpers.IsTextNode(_node.
NodeType
))
318
while (n != null && XmlDataDocument.Helpers.IsTextNode(n.
NodeType
))
354
if (_node.
NodeType
== XmlNodeType.Document)
423
if (curNode.
NodeType
== XmlNodeType.Attribute)
521
if (_column == null && _node.
NodeType
== XmlNodeType.Element)
592
if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.
NodeType
== XmlNodeType.Element)
627
if (bFirst && (_column != null || _node.
NodeType
!= XmlNodeType.Element))
633
if (_column == null && _node.
NodeType
!= XmlNodeType.Attribute)
685
int xntChildInt = XmlNodeTypeToXpathNodeTypeMap[(int)(child.
NodeType
)];
689
int xntInt = XmlNodeTypeToXpathNodeTypeMap[(int)(parent.
NodeType
)];
712
int xntInt = XmlNodeTypeToXpathNodeTypeMap[(int)(parent.
NodeType
)];
760
bool bTextLike = XmlDataDocument.Helpers.IsTextNode(_node.
NodeType
);
766
} while (n != null && bTextLike && XmlDataDocument.Helpers.IsTextNode(n.
NodeType
));
806
bool bTextLike = XmlDataDocument.Helpers.IsTextNode(_node.
NodeType
);
812
} while (n != null && bTextLike && XmlDataDocument.Helpers.IsTextNode(n.
NodeType
));
998
if (_node.
NodeType
== XmlNodeType.Attribute)
1074
XmlNode? parent = ((curNode.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode));
1183
curNode1 = ((curNode1.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.ParentNode));
1193
curNode2 = ((curNode2.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.ParentNode));
1375
while (node != null && ((nt = node.
NodeType
) != XmlNodeType.Element))
1444
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1530
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1560
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1601
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1603
else if (_node.
NodeType
== XmlNodeType.Attribute)
1620
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1633
} while (node != null && node.
NodeType
== XmlNodeType.Element);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
1417
if (child.
NodeType
== XmlNodeType.Element)
System.Private.Xml (184)
System\Xml\Dom\DocumentSchemaValidator.cs (8)
92
switch (nodeToValidate.
NodeType
)
123
if (nodeToValidate.ParentNode!.
NodeType
== XmlNodeType.Document)
177
switch (node.
NodeType
)
264
switch (_currentNode.
NodeType
)
316
throw new InvalidOperationException(SR.Format(SR.Xml_UnexpectedNodeType, _currentNode.
NodeType
));
485
Debug.Assert(elementToValidate.ParentNode!.
NodeType
!= XmlNodeType.Document); //Handle if it is the documentElement separately
728
switch (child.
NodeType
)
753
throw new InvalidOperationException(SR.Format(SR.Xml_UnexpectedNodeType, _currentNode!.
NodeType
));
System\Xml\Dom\DocumentXmlWriter.cs (2)
547
nodeType = parent.
NodeType
;
562
nodeType = _start.
NodeType
;
System\Xml\Dom\DocumentXPathNavigator.cs (48)
48
switch (node.
NodeType
)
127
switch (_source.
NodeType
)
166
switch (_source.
NodeType
)
367
&& node.
NodeType
!= XmlNodeType.Element)
778
if (_source.
NodeType
== XmlNodeType.Attribute)
804
switch (_source.
NodeType
)
906
if (_source.
NodeType
== XmlNodeType.Attribute)
916
if (child.
NodeType
== XmlNodeType.Element
932
if (_source.
NodeType
== XmlNodeType.Attribute)
968
switch (that._source.
NodeType
)
982
if (following.
NodeType
== XmlNodeType.Attribute)
1026
while (following.
NodeType
!= XmlNodeType.Element
1043
switch (that._source.
NodeType
)
1062
switch (following.
NodeType
)
1129
if (sibling.
NodeType
== XmlNodeType.Element
1182
switch (_source.
NodeType
)
1247
if (_source.
NodeType
== XmlNodeType.Document)
1453
if (nsAtom == null || _source.
NodeType
== XmlNodeType.Attribute)
1478
XmlNodeType curNT = _source.
NodeType
;
1502
switch (_source.
NodeType
)
1519
switch (_source.
NodeType
)
1538
switch (node.
NodeType
)
1561
switch (_source.
NodeType
)
1585
if (_source.
NodeType
!= XmlNodeType.Element)
1611
switch (node.
NodeType
)
1662
switch (node.
NodeType
)
1721
switch (node.
NodeType
)
1911
&& parent.
NodeType
== XmlNodeType.EntityReference)
1932
&& child.
NodeType
== XmlNodeType.EntityReference)
1957
|| current.
NodeType
!= XmlNodeType.EntityReference)
1964
&& sibling.
NodeType
== XmlNodeType.EntityReference)
1989
|| current.
NodeType
!= XmlNodeType.EntityReference)
1996
&& sibling.
NodeType
== XmlNodeType.EntityReference)
2030
|| current.
NodeType
!= XmlNodeType.EntityReference)
2038
switch (sibling.
NodeType
)
2101
switch (parent.
NodeType
)
2106
switch (child.
NodeType
)
2119
switch (child.
NodeType
)
2243
if (node.
NodeType
== XmlNodeType.Element && Match(node))
2257
Debug.Assert(((XmlNode)nav.UnderlyingObject).
NodeType
!= XmlNodeType.Attribute);
2271
return (node.
NodeType
== XmlNodeType.Element);
2295
if (node.
NodeType
== XmlNodeType.Element && Match(node))
2311
Debug.Assert(((XmlNode)nav.UnderlyingObject).
NodeType
!= XmlNodeType.Attribute);
2327
Debug.Assert(node.
NodeType
== XmlNodeType.Element);
2352
if (node.
NodeType
== XmlNodeType.Element && Match(node))
2369
Debug.Assert(((XmlNode)nav.UnderlyingObject).
NodeType
!= XmlNodeType.Attribute);
2392
Debug.Assert(node.
NodeType
== XmlNodeType.Element);
2419
if (node.
NodeType
== XmlNodeType.Element && Match(node))
System\Xml\Dom\XmlCDataSection.cs (1)
48
switch (parentNode!.
NodeType
)
System\Xml\Dom\XmlCharacterData.cs (3)
201
Debug.Assert(XmlDocument.IsTextNode(n.
NodeType
) || (n.ParentNode != null && n.ParentNode.
NodeType
== XmlNodeType.EntityReference));
204
switch (n.
NodeType
)
System\Xml\Dom\XmlDocument.cs (17)
503
if (node.
NodeType
== nt)
519
if (node.
NodeType
== nt)
533
switch (newChild.
NodeType
)
540
return refChild.
NodeType
!= XmlNodeType.XmlDeclaration;
544
if (refChild.
NodeType
!= XmlNodeType.XmlDeclaration)
555
if (refChild.
NodeType
!= XmlNodeType.XmlDeclaration)
575
switch (newChild.
NodeType
)
761
XmlNodeType nodeType = node.
NodeType
;
781
parentType = parent.
NodeType
;
805
parentType = parent.
NodeType
;
849
while (IsTextNode(n.
NodeType
))
859
if (intnode.ParentNode != null && intnode.ParentNode.
NodeType
== XmlNodeType.EntityReference)
881
while (n.
NodeType
== XmlNodeType.EntityReference)
967
switch (node.
NodeType
)
1023
throw new InvalidOperationException(SR.Format(CultureInfo.InvariantCulture, SR.Xdom_Import, node.
NodeType
));
1042
Debug.Assert(toNode.
NodeType
!= XmlNodeType.EntityReference);
1774
if (!IsValidChildType(newChild.
NodeType
))
System\Xml\Dom\XmlDocumentFragment.cs (3)
145
if (firstNode == null || firstNode.
NodeType
!= XmlNodeType.XmlDeclaration)
156
if (newChild.
NodeType
== XmlNodeType.XmlDeclaration)
172
if (newChild.
NodeType
== XmlNodeType.XmlDeclaration)
System\Xml\Dom\XmlElement.cs (1)
601
linkedNode.
NodeType
== XmlNodeType.Text && //which is text node
System\Xml\Dom\XmlElementList.cs (3)
30
Debug.Assert(parent.
NodeType
== XmlNodeType.Element || parent.
NodeType
== XmlNodeType.Document);
160
if (curNode.
NodeType
== XmlNodeType.Element)
System\Xml\Dom\XmlLoader.cs (4)
88
if (n.
NodeType
!= XmlNodeType.Attribute)
148
Debug.Assert(parent.
NodeType
== XmlNodeType.Element);
494
Debug.Assert(parent!.
NodeType
== XmlNodeType.Element);
749
Debug.Assert(parentNode.
NodeType
!= XmlNodeType.Document);
System\Xml\Dom\XmlNamedNodemap.cs (2)
145
if (node.
NodeType
== XmlNodeType.Attribute)
212
if (node.
NodeType
== XmlNodeType.Attribute)
System\Xml\Dom\XmlNode.cs (40)
114
set { throw new InvalidOperationException(SR.Format(CultureInfo.InvariantCulture, SR.Xdom_Node_SetVal,
NodeType
.ToString())); }
130
if (parentNode.
NodeType
!= XmlNodeType.Document)
188
if (parentNode.
NodeType
== XmlNodeType.Document)
242
while (parent != null && !(parent.
NodeType
== XmlNodeType.Document))
276
if (newChild.
NodeType
== XmlNodeType.DocumentFragment)
291
if (!(newChild is XmlLinkedNode) || !IsValidChildType(newChild.
NodeType
))
390
if (newChild.
NodeType
== XmlNodeType.DocumentFragment)
406
if (!(newChild is XmlLinkedNode) || !IsValidChildType(newChild.
NodeType
))
596
if (newChild.
NodeType
== XmlNodeType.DocumentFragment)
611
if (!(newChild is XmlLinkedNode) || !IsValidChildType(newChild.
NodeType
))
740
switch (crtChild.
NodeType
)
791
Debug.Assert(firstNode.
NodeType
== XmlNodeType.Text
792
|| firstNode.
NodeType
== XmlNodeType.SignificantWhitespace
793
|| firstNode.
NodeType
== XmlNodeType.Whitespace
794
|| secondNode.
NodeType
== XmlNodeType.Text
795
|| secondNode.
NodeType
== XmlNodeType.SignificantWhitespace
796
|| secondNode.
NodeType
== XmlNodeType.Whitespace);
797
if (firstNode.
NodeType
== XmlNodeType.Text)
799
if (secondNode.
NodeType
== XmlNodeType.Text)
801
if (firstNode.
NodeType
== XmlNodeType.SignificantWhitespace)
803
if (secondNode.
NodeType
== XmlNodeType.SignificantWhitespace)
805
if (firstNode.
NodeType
== XmlNodeType.Whitespace)
807
if (secondNode.
NodeType
== XmlNodeType.Whitespace)
859
switch (n.
NodeType
)
906
if (child.
NodeType
== XmlNodeType.Text || child.
NodeType
== XmlNodeType.CDATA
907
|| child.
NodeType
== XmlNodeType.Whitespace || child.
NodeType
== XmlNodeType.SignificantWhitespace)
930
XmlNodeType nodeType = fc.
NodeType
;
951
&& firstChild.
NodeType
== XmlNodeType.Text)//which is a text node
1022
XmlNodeType nt = curNode.
NodeType
;
1062
if (
NodeType
== XmlNodeType.Document)
1091
if (node.
NodeType
== XmlNodeType.Element)
1136
else if (node.
NodeType
== XmlNodeType.Attribute)
1176
if (node.
NodeType
== XmlNodeType.Element)
1215
else if (node.
NodeType
== XmlNodeType.Attribute)
1244
if (n.
NodeType
== XmlNodeType.Element && n.Name == name)
1260
if (n.
NodeType
== XmlNodeType.Element && n.LocalName == localname && n.NamespaceURI == ns)
1304
if (child.
NodeType
== type)
1461
XmlNodeType nodeType = _node.
NodeType
;
System\Xml\Dom\XmlNodeReader.cs (43)
75
XmlNodeType nt = _curNode.
NodeType
;
107
XmlNodeType nt = _curNode.
NodeType
;
131
Debug.Assert(_curNode.
NodeType
== XmlNodeType.XmlDeclaration || _curNode.
NodeType
== XmlNodeType.DocumentType);
137
if (_curNode.
NodeType
== XmlNodeType.XmlDeclaration)
143
if (IsLocalNameEmpty(_curNode.
NodeType
))
156
if (IsLocalNameEmpty(_curNode.
NodeType
))
214
Debug.Assert(_curNode.
NodeType
== XmlNodeType.XmlDeclaration || _curNode.
NodeType
== XmlNodeType.DocumentType);
218
if (_curNode.Value != null || _curNode.
NodeType
== XmlNodeType.DocumentType)
230
XmlNodeType nt = _curNode.
NodeType
;
237
return _curNode.
NodeType
== XmlNodeType.XmlDeclaration ?
293
if (_curNode.
NodeType
== XmlNodeType.Element)
305
if (_curNode.
NodeType
== XmlNodeType.Attribute)
332
XmlNodeType nt = _curNode.
NodeType
;
492
return _curNode.
NodeType
switch
514
return _curNode.
NodeType
switch
528
switch (_curNode.
NodeType
)
574
XmlNodeType nt = _curNode.
NodeType
;
593
while (_curNode.
NodeType
!= XmlNodeType.Attribute && ((_curNode = _curNode.ParentNode!) != null))
617
nt = _curNode.
NodeType
;
620
if (_bOnAttrVal && _curNode.
NodeType
!= XmlNodeType.Attribute)
622
if (_curNode.
NodeType
== XmlNodeType.Attribute)
629
if (_curNode.
NodeType
== XmlNodeType.Element)
662
XmlNodeType nt = _curNode.
NodeType
;
691
switch (_curNode.
NodeType
)
724
XmlNodeType nt = _curNode.
NodeType
;
818
if (_curNode.
NodeType
!= XmlNodeType.Attribute)
828
switch (_curNode.
NodeType
)
875
if (node.
NodeType
== XmlNodeType.Element)
887
else if (node.
NodeType
== XmlNodeType.Attribute)
943
if (node.
NodeType
== XmlNodeType.Element)
973
else if (node.
NodeType
== XmlNodeType.Attribute)
995
if (node.
NodeType
== XmlNodeType.Element)
1026
else if (node.
NodeType
== XmlNodeType.Attribute)
1053
Debug.Assert(_curNode.
NodeType
== XmlNodeType.XmlDeclaration || _curNode.
NodeType
== XmlNodeType.DocumentType);
1063
if (_curNode.
NodeType
== XmlNodeType.Attribute)
1069
nt = _curNode.
NodeType
;
1078
if (_curNode.
NodeType
== XmlNodeType.EntityReference && bResolveEntity)
1083
nt = _curNode.
NodeType
;
1094
if (parentNode != null && parentNode.
NodeType
== XmlNodeType.EntityReference)
1106
nt = _curNode.
NodeType
;
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
49
switch (parentNode!.
NodeType
)
System\Xml\Dom\XmlText.cs (2)
52
switch (parentNode!.
NodeType
)
91
if (parent != null && parent.
NodeType
== XmlNodeType.Attribute)
System\Xml\Dom\XmlWhitespace.cs (1)
50
switch (parentNode!.
NodeType
)
System\Xml\Serialization\_Events.cs (1)
141
get { return _xmlNode.
NodeType
; }
System\Xml\Serialization\XmlSerializationReader.cs (4)
1234
if (unknownNode.
NodeType
!= XmlNodeType.None && unknownNode.
NodeType
!= XmlNodeType.Whitespace && _events.OnUnknownNode != null)
1241
if (unknownNode.
NodeType
== XmlNodeType.Attribute)
1245
else if (unknownNode.
NodeType
== XmlNodeType.Element)
System.Security.Cryptography.Xml (7)
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (2)
35
if (childNode.
NodeType
== XmlNodeType.Element)
52
if (childNode.
NodeType
== XmlNodeType.Element)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
825
if (parent.
NodeType
== XmlNodeType.Document)
System\Security\Cryptography\Xml\Utils.cs (3)
103
return n.
NodeType
== XmlNodeType.Attribute && (n.Prefix.Equals("xmlns") || (n.Prefix.Length == 0 && n.LocalName.Equals("xmlns")));
108
return n.
NodeType
== XmlNodeType.Attribute && n.Prefix.Equals("xml");
114
bool b1 = n.
NodeType
== XmlNodeType.Attribute && n.Prefix.Length == 0 && n.LocalName.Equals("xmlns");
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
181
if (parent.
NodeType
== XmlNodeType.Document)