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
387 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)
513
if (referenceSibling.XmlElement.PreviousSibling?.
NodeType
== XmlNodeType.Whitespace)
529
if (child.XmlElement.PreviousSibling?.
NodeType
== XmlNodeType.Whitespace)
544
if (XmlElement.FirstChild.
NodeType
== XmlNodeType.Whitespace)
563
if (xmlElement.PreviousSibling?.
NodeType
!= XmlNodeType.Whitespace)
599
if (previousSibling?.
NodeType
== XmlNodeType.Whitespace)
611
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)
634
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)
196
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.Conversion.Core (33)
ProjectFileConverter.cs (33)
622
if ((childNode.
NodeType
!= XmlNodeType.Comment) &&
623
(childNode.
NodeType
!= XmlNodeType.XmlDeclaration) &&
624
(childNode.
NodeType
!= XmlNodeType.Whitespace))
1648
if ((visualStudioProjectChildNode.
NodeType
== XmlNodeType.Comment) ||
1649
(visualStudioProjectChildNode.
NodeType
== XmlNodeType.Whitespace))
1654
if (visualStudioProjectChildNode.
NodeType
== XmlNodeType.Element)
1824
if ((languageChildNode.
NodeType
== XmlNodeType.Comment) ||
1825
(languageChildNode.
NodeType
== XmlNodeType.Whitespace))
1830
if (languageChildNode.
NodeType
== XmlNodeType.Element)
2030
if ((buildChildNode.
NodeType
== XmlNodeType.Comment) ||
2031
(buildChildNode.
NodeType
== XmlNodeType.Whitespace))
2036
if (buildChildNode.
NodeType
== XmlNodeType.Element)
2159
if ((settingsChildNode.
NodeType
== XmlNodeType.Comment) ||
2160
(settingsChildNode.
NodeType
== XmlNodeType.Whitespace))
2165
if (settingsChildNode.
NodeType
== XmlNodeType.Element)
2405
if ((configChildNode.
NodeType
== XmlNodeType.Comment) ||
2406
(configChildNode.
NodeType
== XmlNodeType.Whitespace))
2411
if (configChildNode.
NodeType
== XmlNodeType.Element)
2634
if ((referencesChildNode.
NodeType
== XmlNodeType.Comment) ||
2635
(referencesChildNode.
NodeType
== XmlNodeType.Whitespace))
2640
if (referencesChildNode.
NodeType
== XmlNodeType.Element)
3146
if ((importsChildNode.
NodeType
== XmlNodeType.Comment) ||
3147
(importsChildNode.
NodeType
== XmlNodeType.Whitespace))
3152
if (importsChildNode.
NodeType
== XmlNodeType.Element)
3260
if ((filesChildNode.
NodeType
== XmlNodeType.Comment) ||
3261
(filesChildNode.
NodeType
== XmlNodeType.Whitespace))
3266
if (filesChildNode.
NodeType
== XmlNodeType.Element)
3328
if ((includeChildNode.
NodeType
== XmlNodeType.Comment) ||
3329
(includeChildNode.
NodeType
== XmlNodeType.Whitespace))
3334
if (includeChildNode.
NodeType
== XmlNodeType.Element)
3734
if ((startupServicesChildNode.
NodeType
== XmlNodeType.Comment) ||
3735
(startupServicesChildNode.
NodeType
== XmlNodeType.Whitespace))
3740
if (startupServicesChildNode.
NodeType
== XmlNodeType.Element)
Microsoft.Build.Engine (27)
Choose\Choose.cs (1)
102
switch (chooseChildNode.
NodeType
)
Choose\When.cs (1)
159
switch (whenChildNode.
NodeType
)
Engine\TargetExecutionWrapper.cs (2)
658
while ((targetChildNode.
NodeType
== XmlNodeType.Comment) ||
659
(targetChildNode.
NodeType
== XmlNodeType.Whitespace) ||
Engine\ToolsetState.cs (1)
250
if (usingTaskNode.
NodeType
!= XmlNodeType.Comment)
Engine\Utilities.cs (2)
426
if (node.ChildNodes.Count == 1 && (node.FirstChild.
NodeType
== XmlNodeType.Text || node.FirstChild.
NodeType
== XmlNodeType.CDATA))
Engine\XmlSearcher.cs (9)
107
if ((xmlNodeToFind.
NodeType
!= XmlNodeType.Element) &&
108
(xmlNodeToFind.
NodeType
!= XmlNodeType.Text) &&
109
(xmlNodeToFind.
NodeType
!= XmlNodeType.Attribute))
117
if ((xmlNodeToFind.
NodeType
== XmlNodeType.Element) || (xmlNodeToFind.
NodeType
== XmlNodeType.Text))
121
else if (xmlNodeToFind.
NodeType
== XmlNodeType.Attribute)
140
if ((xmlNode.
NodeType
== XmlNodeType.Element) || (xmlNode.
NodeType
== XmlNodeType.Text))
195
if (xmlNodeToFind.
NodeType
== XmlNodeType.Attribute)
Properties\BuildPropertyGroup.cs (1)
299
switch (propertyGroupChildNode.
NodeType
)
Shared\XMakeElements.cs (2)
50
(childNode.
NodeType
== XmlNodeType.Comment) ||
51
(childNode.
NodeType
== XmlNodeType.Whitespace);
Shared\XmlUtilities.cs (5)
96
(node.
NodeType
!= XmlNodeType.Comment) &&
97
(node.
NodeType
!= XmlNodeType.Whitespace) &&
98
(node.
NodeType
!= XmlNodeType.XmlDeclaration) &&
99
(node.
NodeType
!= XmlNodeType.ProcessingInstruction) &&
100
(node.
NodeType
!= XmlNodeType.DocumentType)
Solution\VCProjectParser.cs (1)
57
if (configurationNode.
NodeType
== XmlNodeType.Element)
Xml\ProjectXmlUtilities.cs (2)
30
switch (child.
NodeType
)
57
if (childNode.
NodeType
!= XmlNodeType.Element)
Microsoft.Build.Tasks.Core (6)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1238
if (nextNode.
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)
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)
657
if (node.
NodeType
== XmlNodeType.Element)
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
486
if (node.
NodeType
== XmlNodeType.Text)
496
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)
832
(valueNode.FirstChild.
NodeType
!= XmlNodeType.Text))
1304
(valueNode.FirstChild.
NodeType
!= XmlNodeType.Text))
PrintConfig\PrtTicket_Editor.cs (3)
108
if ((rootChild.
NodeType
!= XmlNodeType.Element) ||
256
if ((child.
NodeType
!= XmlNodeType.Element) ||
320
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
))
396
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
))
608
if (_node.
NodeType
== XmlNodeType.Element)
623
if (_node != null && _column == null && _node.
NodeType
== XmlNodeType.Attribute)
767
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)
785
if (node.
NodeType
!= XmlNodeType.Element)
1020
if (newNode.
NodeType
== XmlNodeType.Element)
1107
switch (n.
NodeType
)
1532
if (iter.CurrentNode!.
NodeType
== XmlNodeType.Element)
2306
Debug.Assert(parent.
NodeType
!= XmlNodeType.Attribute); // We need to get the grand-parent region
2361
while (n != null && n.
NodeType
== XmlNodeType.Whitespace)
2366
if (n.
NodeType
== XmlNodeType.Text)
3012
if (XPathNodePointer.XmlNodeTypeToXpathNodeTypeMap[(int)(node.
NodeType
)] == -1)
3015
if (IsTextNode(node.
NodeType
))
3018
if (parent != null && parent.
NodeType
== XmlNodeType.Attribute)
3031
while (prevSib != null && IsTextNode(prevSib.
NodeType
))
System\Xml\XPathNodePointer.cs (35)
51
Debug.Assert(XmlDataDocument.IsTextNode(node.
NodeType
));
56
switch (n.
NodeType
)
76
if (XmlDataDocument.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))
310
if (XmlDataDocument.IsTextNode(_node.
NodeType
))
317
while (n != null && XmlDataDocument.IsTextNode(n.
NodeType
))
352
if (_node.
NodeType
== XmlNodeType.Document)
421
if (curNode.
NodeType
== XmlNodeType.Attribute)
519
if (_column == null && _node.
NodeType
== XmlNodeType.Element)
590
if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.
NodeType
== XmlNodeType.Element)
625
if (bFirst && (_column != null || _node.
NodeType
!= XmlNodeType.Element))
631
if (_column == null && _node.
NodeType
!= XmlNodeType.Attribute)
683
int xntChildInt = XmlNodeTypeToXpathNodeTypeMap[(int)(child.
NodeType
)];
687
int xntInt = XmlNodeTypeToXpathNodeTypeMap[(int)(parent.
NodeType
)];
710
int xntInt = XmlNodeTypeToXpathNodeTypeMap[(int)(parent.
NodeType
)];
758
bool bTextLike = XmlDataDocument.IsTextNode(_node.
NodeType
);
764
} while (n != null && bTextLike && XmlDataDocument.IsTextNode(n.
NodeType
));
804
bool bTextLike = XmlDataDocument.IsTextNode(_node.
NodeType
);
810
} while (n != null && bTextLike && XmlDataDocument.IsTextNode(n.
NodeType
));
996
if (_node.
NodeType
== XmlNodeType.Attribute)
1071
XmlNode? parent = ((curNode.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode).OwnerElement) : (curNode.ParentNode));
1179
curNode1 = ((curNode1.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode1).OwnerElement) : (curNode1.ParentNode));
1189
curNode2 = ((curNode2.
NodeType
== XmlNodeType.Attribute) ? (((XmlAttribute)curNode2).OwnerElement) : (curNode2.ParentNode));
1368
while (node != null && ((nt = node.
NodeType
) != XmlNodeType.Element))
1437
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1521
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1550
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1590
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1592
else if (_node.
NodeType
== XmlNodeType.Attribute)
1609
} while (node != null && node.
NodeType
!= XmlNodeType.Element);
1622
} 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)
System.ServiceModel.Primitives (7)
System\ServiceModel\Security\XmlHelper.cs (7)
59
if (child.
NodeType
== XmlNodeType.Whitespace || child.
NodeType
== XmlNodeType.Comment)
63
else if (child.
NodeType
== XmlNodeType.Element && result == null)
92
if (child.
NodeType
== XmlNodeType.Whitespace || child.
NodeType
== XmlNodeType.Comment)
96
else if (child.
NodeType
== XmlNodeType.Element)
216
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, n.Name, n.
NodeType
, parent.Name)));