3605 references to XmlNodeType
PresentationBuildTasks (66)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (3)
189
case
XmlNodeType
.Element:
198
case
XmlNodeType
.EndElement:
761
_inAttribute = (Reader.NodeType ==
XmlNodeType
.Attribute);
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
57
public override
XmlNodeType
NodeType { get { return _reader.NodeType; } }
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
511
XmlNodeType
.Document, // parsing document
519
case
XmlNodeType
.Element :
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (6)
796
XmlNodeType
currNodeType = xmlReader.NodeType;
799
case
XmlNodeType
.Element:
852
case
XmlNodeType
.EndElement:
859
case
XmlNodeType
.CDATA:
860
case
XmlNodeType
.Text:
876
ThrowCompilerException(SRID.IllegalCDataTextScoping, DefinitionNSPrefix, LocalName, (currNodeType ==
XmlNodeType
.CDATA ? "a CDATA section" : "text content"));
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (2)
425
string attrName = (xmlReader.NodeType ==
XmlNodeType
.Attribute) ? xmlReader.Name : null;
718
while (!xamlDefTagNode.IsEmptyElement && xamlDefTagNode.XmlReader.NodeType !=
XmlNodeType
.EndElement)
Framework\System\Windows\Markup\XamlParser.cs (2)
90
multipleRoots ?
XmlNodeType
.Element :
XmlNodeType
.Document,
Framework\System\Windows\Markup\XamlReaderHelper.cs (50)
396
case
XmlNodeType
.Element:
399
case
XmlNodeType
.EndElement:
1251
case
XmlNodeType
.SignificantWhitespace:
1252
case
XmlNodeType
.Text:
1253
case
XmlNodeType
.CDATA:
1254
case
XmlNodeType
.Whitespace:
1271
case
XmlNodeType
.Element:
1290
case
XmlNodeType
.EndElement:
1318
case
XmlNodeType
.Attribute: // review this.
1323
case
XmlNodeType
.Comment:
1326
case
XmlNodeType
.ProcessingInstruction:
2001
CompileBamlTag(
XmlNodeType
.Element, ref endTagHasBeenRead);
2014
CompileBamlTag(
XmlNodeType
.EndElement, ref endTagHasBeenRead);
2053
CompileBamlTag(
XmlNodeType
.EndElement,
2103
case
XmlNodeType
.Text:
2104
case
XmlNodeType
.CDATA:
2105
case
XmlNodeType
.SignificantWhitespace:
2106
case
XmlNodeType
.Whitespace:
2111
case
XmlNodeType
.ProcessingInstruction:
2117
case
XmlNodeType
.EntityReference:
2140
XmlNodeType
xmlNodeType,
2148
case
XmlNodeType
.Element:
2160
case
XmlNodeType
.EndElement:
2163
case
XmlNodeType
.Text:
2164
case
XmlNodeType
.CDATA:
2165
case
XmlNodeType
.SignificantWhitespace:
2166
case
XmlNodeType
.Whitespace:
3574
XmlNodeType
xmlNodeType, // Type of xml node we are processing.
3595
case
XmlNodeType
.Element:
3752
case
XmlNodeType
.EndElement:
3801
case
XmlNodeType
.CDATA:
3802
case
XmlNodeType
.Text:
3803
case
XmlNodeType
.SignificantWhitespace:
3804
case
XmlNodeType
.Whitespace:
3814
case
XmlNodeType
.ProcessingInstruction:
3821
case
XmlNodeType
.Comment:
3828
case
XmlNodeType
.EntityReference:
4119
CompileText(
XmlNodeType
.None, textValue);
5006
private void CompileText(
XmlNodeType
xmlNodeType, string textValue)
5010
Debug.Assert( xmlNodeType ==
XmlNodeType
.Text ||
5011
xmlNodeType ==
XmlNodeType
.Whitespace ||
5012
xmlNodeType ==
XmlNodeType
.SignificantWhitespace ||
5013
xmlNodeType ==
XmlNodeType
.CDATA ||
5014
xmlNodeType ==
XmlNodeType
.None,
5018
case
XmlNodeType
.Text:
5022
case
XmlNodeType
.Whitespace:
5023
case
XmlNodeType
.SignificantWhitespace:
5027
case
XmlNodeType
.CDATA:
5028
case
XmlNodeType
.None:
5176
0 == XmlReader.Depth && XmlReader.NodeType ==
XmlNodeType
.None))
PresentationCore (16)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (16)
213
if (_reader.NodeType ==
XmlNodeType
.Attribute)
220
if (_reader.NodeType ==
XmlNodeType
.Attribute)
297
private
XmlNodeType
MoveToContent()
305
case
XmlNodeType
.CDATA:
306
case
XmlNodeType
.Element:
307
case
XmlNodeType
.EndElement:
308
case
XmlNodeType
.EntityReference:
309
case
XmlNodeType
.EndEntity:
418
while (MoveToContent() !=
XmlNodeType
.EndElement)
420
if (_reader.NodeType ==
XmlNodeType
.Element && _reader.NamespaceURI == CompositeFontNamespace)
433
while (MoveToContent() ==
XmlNodeType
.Element)
586
while (MoveToContent() !=
XmlNodeType
.EndElement)
588
if (_reader.NodeType ==
XmlNodeType
.Element && _reader.NamespaceURI == CompositeFontNamespace)
603
while (MoveToContent() ==
XmlNodeType
.Element)
836
while (MoveToContent() !=
XmlNodeType
.EndElement)
838
if (_reader.NodeType ==
XmlNodeType
.Element && _reader.NamespaceURI == CompositeFontNamespace)
PresentationFramework (29)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
465
while(rdr.NodeType !=
XmlNodeType
.EndElement)
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
662
if (node.NodeType ==
XmlNodeType
.Element)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (2)
485
if (node.NodeType ==
XmlNodeType
.Text)
495
else if (node.NodeType ==
XmlNodeType
.Element)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (5)
423
case
XmlNodeType
.Text:
424
case
XmlNodeType
.SignificantWhitespace:
425
case
XmlNodeType
.CDATA:
432
case
XmlNodeType
.Element:
437
case
XmlNodeType
.EndElement:
src\Framework\System\Windows\Annotations\Annotation.cs (6)
315
while (!(
XmlNodeType
.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Annotation == reader.LocalName))
324
while (!(AnnotationXmlConstants.Elements.AnchorCollection == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
339
while (!(AnnotationXmlConstants.Elements.CargoCollection == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
354
while (!(AnnotationXmlConstants.Elements.AuthorCollection == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
356
if (!(AnnotationXmlConstants.Elements.StringAuthor == reader.LocalName &&
XmlNodeType
.Element == reader.NodeType))
548
if (reader.NodeType ==
XmlNodeType
.Attribute)
src\Framework\System\Windows\Annotations\AnnotationResource.cs (2)
201
while (!(AnnotationXmlConstants.Elements.Resource == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
213
else if (
XmlNodeType
.Element == reader.NodeType)
src\Framework\System\Windows\Annotations\LocatorGroup.cs (1)
156
while (!(AnnotationXmlConstants.Elements.ContentLocatorGroup == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
src\Framework\System\Windows\Annotations\LocatorPartList.cs (4)
242
while (!(AnnotationXmlConstants.Elements.ContentLocator == reader.LocalName &&
XmlNodeType
.EndElement == reader.NodeType))
244
if (
XmlNodeType
.Element != reader.NodeType)
260
while (!(
XmlNodeType
.EndElement == reader.NodeType && part.PartType.Name == reader.LocalName))
303
if (!(
XmlNodeType
.EndElement == reader.NodeType && AnnotationXmlConstants.Elements.Item == reader.LocalName))
src\Framework\System\Windows\Documents\FixedFindEngine.cs (1)
398
case
XmlNodeType
.Element:
src\Framework\System\Windows\Documents\FixedSchema.cs (2)
40
if (base.NodeType ==
XmlNodeType
.XmlDeclaration)
213
if ( (Reader.NodeType ==
XmlNodeType
.Element) && !_rootXMLNSChecked )
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1411
if (reader.NodeType ==
XmlNodeType
.Element)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
2064
XmlNodeType
.Element,
src\Framework\System\Windows\Markup\FilteredXmlReader.cs (1)
241
internal FilteredXmlReader( string xmlFragment,
XmlNodeType
fragmentType, XmlParserContext context ) :
src\Framework\System\Windows\Markup\XamlReader.cs (1)
214
XmlTextReader reader = new XmlTextReader(stream,
XmlNodeType
.Document, parserContext);
System.Activities (4)
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (3)
114
if (this.NodeType == Xml.
XmlNodeType
.Element)
150
else if (this.NodeType == Xml.
XmlNodeType
.EndElement)
165
else if (this.NodeType == Xml.
XmlNodeType
.Text)
System\Activities\Debugger\XmlWrappingReader.cs (1)
24
public override
XmlNodeType
NodeType
System.Configuration (105)
System\Configuration\AppSettingsSection.cs (2)
140
XmlNodeType
t = xmlUtil.Reader.NodeType;
141
if (t !=
XmlNodeType
.Comment) {
System\Configuration\BaseConfigurationRecord.cs (16)
1959
XmlNodeType
t = xmlUtil.Reader.NodeType;
1960
if (t !=
XmlNodeType
.Comment) {
2268
if (xmlUtil.Reader.NodeType !=
XmlNodeType
.Element || xmlUtil.Reader.Name != KEYWORD_CONFIGURATION) {
3136
XmlNodeType
t = xmlUtil.Reader.NodeType;
3137
if (t ==
XmlNodeType
.EndElement)
3140
if (t !=
XmlNodeType
.Comment) {
3146
if (t ==
XmlNodeType
.Element) {
3185
if (xmlUtil.Reader.NodeType !=
XmlNodeType
.Element) {
4228
XmlNodeType
nodeType;
4249
if (nodeType ==
XmlNodeType
.Element && clone.Name == "EncryptedData") { // Found it!
4253
if (nodeType ==
XmlNodeType
.EndElement) {
4256
else if (nodeType !=
XmlNodeType
.Comment && nodeType !=
XmlNodeType
.Whitespace) {
4279
if (nodeType ==
XmlNodeType
.EndElement) {
4282
else if (nodeType !=
XmlNodeType
.Comment && nodeType !=
XmlNodeType
.Whitespace) {
System\Configuration\ConfigurationElement.cs (4)
1515
if (reader.NodeType ==
XmlNodeType
.Element) {
1546
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
1549
else if ((reader.NodeType ==
XmlNodeType
.CDATA) || (reader.NodeType ==
XmlNodeType
.Text)) {
System\Configuration\ConfigurationSection.cs (1)
59
if (!reader.Read() || reader.NodeType !=
XmlNodeType
.Element) {
System\Configuration\DefaultSection.cs (1)
49
if (!xmlReader.Read() || xmlReader.NodeType !=
XmlNodeType
.Element) {
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
26
if (encryptedNode.NodeType !=
XmlNodeType
.Element ||
220
if (child.NodeType !=
XmlNodeType
.Element)
System\Configuration\IgnoreSection.cs (1)
49
if (!xmlReader.Read() || xmlReader.NodeType !=
XmlNodeType
.Element) {
System\Configuration\MgmtConfigurationRecord.cs (19)
698
reader = new XmlTextReader(xmlElement,
XmlNodeType
.Element, context);
702
if (reader.NodeType !=
XmlNodeType
.Element) {
725
case
XmlNodeType
.XmlDeclaration:
726
case
XmlNodeType
.DocumentType:
735
if (reader.Depth <= 0 && reader.NodeType !=
XmlNodeType
.EndElement) {
2305
if (xmlUtil.Reader.NodeType ==
XmlNodeType
.Element && utilWriter.IsLastLineBlank) {
2329
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element && reader.Name == KEYWORD_CONFIGURATION,
2361
if (reader.NodeType ==
XmlNodeType
.Element && reader.Name == KEYWORD_CONFIGSECTIONS) {
2384
Debug.Assert(reader.NodeType ==
XmlNodeType
.EndElement && reader.Name == KEYWORD_CONFIGSECTIONS,
2427
bool skipFirstIndent = reader.Depth > 0 && reader.NodeType ==
XmlNodeType
.Element;
2510
if (reader.NodeType ==
XmlNodeType
.Element) {
2514
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
2555
if (reader.NodeType ==
XmlNodeType
.Element) {
2736
if (reader.NodeType ==
XmlNodeType
.Element) {
2740
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
2785
if (reader.NodeType ==
XmlNodeType
.Element) {
3028
if (reader.NodeType ==
XmlNodeType
.EndElement) {
3199
if (reader.NodeType ==
XmlNodeType
.Element) {
3226
if (reader.IsEmptyElement || reader.NodeType ==
XmlNodeType
.EndElement) {
System\Configuration\RSAProtectedConfigurationProvider.cs (2)
89
if (node2.NodeType ==
XmlNodeType
.Element)
91
if (node3.NodeType ==
XmlNodeType
.Element)
System\Configuration\RuntimeConfigurationRecord.cs (1)
210
if (xmlNode.NodeType ==
XmlNodeType
.Element) {
System\Configuration\XmlUtil.cs (55)
62
private static int GetPositionOffset(
XmlNodeType
nodeType) {
101
case
XmlNodeType
.XmlDeclaration:
102
case
XmlNodeType
.Comment:
103
case
XmlNodeType
.DocumentType:
106
case
XmlNodeType
.Element:
178
if (_reader.MoveToContent() ==
XmlNodeType
.Element) {
195
while (!_reader.EOF && _reader.NodeType !=
XmlNodeType
.Element) {
207
if (_reader.NodeType ==
XmlNodeType
.Element) {
223
while (!_reader.EOF && _reader.NodeType !=
XmlNodeType
.Element) {
243
while (!_reader.EOF && _reader.NodeType !=
XmlNodeType
.EndElement) {
253
XmlNodeType
nodeType = _reader.NodeType;
255
if (nodeType !=
XmlNodeType
.Comment && nodeType !=
XmlNodeType
.EndElement) {
388
Debug.Assert(_reader.NodeType ==
XmlNodeType
.Element, "_reader.NodeType == XmlNodeType.Element");
394
while (_reader.NodeType !=
XmlNodeType
.EndElement) {
397
if (_reader.NodeType ==
XmlNodeType
.Element) {
405
if (_reader.NodeType ==
XmlNodeType
.Whitespace) {
443
if (_reader.NodeType ==
XmlNodeType
.EndElement)
454
if (_reader.NodeType ==
XmlNodeType
.Element)
482
Debug.Assert(_reader.NodeType ==
XmlNodeType
.Element, "_reader.NodeType == XmlNodeType.Element");
507
if (_reader.NodeType !=
XmlNodeType
.Whitespace) {
526
if (_reader.NodeType ==
XmlNodeType
.Element)
543
Debug.Assert(_reader.NodeType==
XmlNodeType
.Element, "_reader.NodeType== XmlNodeType.Element");
603
XmlNodeType
nodeType = _reader.NodeType;
604
if (nodeType ==
XmlNodeType
.Whitespace) {
607
else if (nodeType ==
XmlNodeType
.Element) {
655
else if (nodeType ==
XmlNodeType
.EndElement) {
669
else if (nodeType ==
XmlNodeType
.Comment) {
672
else if (nodeType ==
XmlNodeType
.Text) {
675
else if (nodeType ==
XmlNodeType
.XmlDeclaration) {
725
else if (nodeType ==
XmlNodeType
.SignificantWhitespace) {
728
else if (nodeType ==
XmlNodeType
.ProcessingInstruction) {
743
else if (nodeType ==
XmlNodeType
.EntityReference) {
746
else if (nodeType ==
XmlNodeType
.CDATA) {
749
else if (nodeType ==
XmlNodeType
.DocumentType) {
863
Debug.Assert(_reader.NodeType ==
XmlNodeType
.Element,
898
Debug.Assert(_reader.NodeType ==
XmlNodeType
.Element, "_reader.NodeType == NodeType.Element");
988
(Reader.NodeType ==
XmlNodeType
.Whitespace)) {
1010
XmlTextReader reader = new XmlTextReader(xmlElement,
XmlNodeType
.Element, context);
1028
XmlNodeType
nodeType = reader.NodeType;
1039
case
XmlNodeType
.CDATA:
1040
case
XmlNodeType
.Element:
1041
case
XmlNodeType
.EndElement:
1042
case
XmlNodeType
.Comment:
1061
case
XmlNodeType
.Whitespace:
1064
case
XmlNodeType
.SignificantWhitespace:
1068
case
XmlNodeType
.CDATA:
1072
case
XmlNodeType
.ProcessingInstruction:
1076
case
XmlNodeType
.Comment:
1080
case
XmlNodeType
.Text:
1085
case
XmlNodeType
.Element:
1137
case
XmlNodeType
.EndElement:
1143
case
XmlNodeType
.EntityReference:
1148
case
XmlNodeType
.XmlDeclaration:
1149
case
XmlNodeType
.DocumentType:
System\Configuration\XmlUtilWriter.cs (1)
293
if (reader.NodeType ==
XmlNodeType
.Text) {
System.Data (248)
fx\src\data\System\Data\Common\HandlerBase.cs (3)
26
if (
XmlNodeType
.Element != node.NodeType) {
38
if ((
XmlNodeType
.Comment == node.NodeType) || (
XmlNodeType
.Whitespace == node.NodeType)) {
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
352
if(type == typeof(string) && xmlReader.NodeType ==
XmlNodeType
.Element && xmlReader.IsEmptyElement) {
fx\src\data\System\Data\Common\SQLTypes\SqlXmlStorage.cs (1)
92
XmlTextReader reader = new XmlTextReader(s,
XmlNodeType
.Element, null) ;
fx\src\data\System\Data\DataSet.cs (26)
186
if (reader.NodeType ==
XmlNodeType
.Element) {
1488
if (reader.NodeType ==
XmlNodeType
.Element) {
1566
if (reader.NodeType ==
XmlNodeType
.Element)
1571
if (reader.NodeType ==
XmlNodeType
.Element) {
1646
while (!reader.EOF && reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.Element && reader.Depth > depth) {
1649
return (reader.NodeType ==
XmlNodeType
.Element);
1653
while (!reader.EOF && reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.Element) {
1658
while (reader.NodeType ==
XmlNodeType
.Whitespace) {
1661
if (reader.NodeType ==
XmlNodeType
.None) {
1664
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
1692
while (reader.NodeType ==
XmlNodeType
.Whitespace) {
1927
if (reader.NodeType ==
XmlNodeType
.Element)
1930
if (reader.NodeType ==
XmlNodeType
.Element) {
2014
while (!reader.EOF && reader.NodeType ==
XmlNodeType
.Whitespace)
2016
if (reader.NodeType !=
XmlNodeType
.Element)
2234
if (reader.NodeType ==
XmlNodeType
.Whitespace)
2245
if (reader.NodeType ==
XmlNodeType
.Whitespace) {
2254
if (reader.NodeType ==
XmlNodeType
.Whitespace) {
2258
Debug.Assert(reader.NodeType !=
XmlNodeType
.Whitespace, "Should not be on Whitespace node");
2351
if ((mode != XmlReadMode.Fragment) && (reader.NodeType ==
XmlNodeType
.Element))
2357
if (reader.NodeType ==
XmlNodeType
.Element) {
2535
XmlTextReader reader = (mode == XmlReadMode.Fragment) ? new XmlTextReader(stream,
XmlNodeType
.Element, null) : new XmlTextReader(stream);
2548
XmlTextReader xmlreader = (mode == XmlReadMode.Fragment) ? new XmlTextReader(reader.ReadToEnd(),
XmlNodeType
.Element, null) : new XmlTextReader(reader);
2563
xr = new XmlTextReader(stream,
XmlNodeType
.Element, null);
fx\src\data\System\Data\DataTable.cs (10)
5162
if (reader.NodeType ==
XmlNodeType
.Element) {
5354
if ((mode != XmlReadMode.Fragment) && (reader.NodeType ==
XmlNodeType
.Element))
5367
if (reader.NodeType ==
XmlNodeType
.Element) {
5560
while (reader.NodeType ==
XmlNodeType
.Whitespace) {
5563
if (reader.NodeType ==
XmlNodeType
.None) {
5566
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
5577
while (!reader.EOF && reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.Element && reader.Depth > depth) {
5580
return (reader.NodeType ==
XmlNodeType
.Element);
5606
if (reader.NodeType ==
XmlNodeType
.Whitespace) {
fx\src\data\System\Data\DataViewManager.cs (1)
113
if (r.NodeType !=
XmlNodeType
.Element)
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (5)
974
if ( (
XmlNodeType
.Element == xmlReader.NodeType) &&
1064
if ((
XmlNodeType
.Element != xmlReader.NodeType) || (0 != String.Compare(xmlReader.LocalName, MessageNode, StringComparison.OrdinalIgnoreCase))) {
1076
if (xmlReader.NodeType !=
XmlNodeType
.Text) {
1082
using (XmlTextReader xmlMessageReader = new XmlTextReader(xmlReader.Value,
XmlNodeType
.Element, null)) {
1089
if (xmlMessageReader.NodeType ==
XmlNodeType
.Text) {
fx\src\data\System\Data\SqlClient\SqlStream.cs (11)
572
case
XmlNodeType
.Element:
580
case
XmlNodeType
.Text:
594
case
XmlNodeType
.Whitespace:
595
case
XmlNodeType
.SignificantWhitespace:
598
case
XmlNodeType
.CDATA:
601
case
XmlNodeType
.EntityReference:
604
case
XmlNodeType
.XmlDeclaration:
605
case
XmlNodeType
.ProcessingInstruction:
608
case
XmlNodeType
.DocumentType:
611
case
XmlNodeType
.Comment:
614
case
XmlNodeType
.EndElement:
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10384
if (feed._source.NodeType ==
XmlNodeType
.XmlDeclaration) {
fx\src\data\System\Data\XmlDataLoader.cs (29)
98
if (n.NodeType ==
XmlNodeType
.Element) {
132
while (n != null && (n.NodeType ==
XmlNodeType
.Whitespace || !IsTextLikeNode(n.NodeType))) {
163
while (n.NodeType ==
XmlNodeType
.Whitespace)
247
internal bool IsTextLikeNode(
XmlNodeType
n ) {
249
case
XmlNodeType
.EntityReference:
252
case
XmlNodeType
.Text:
253
case
XmlNodeType
.Whitespace:
254
case
XmlNodeType
.SignificantWhitespace:
255
case
XmlNodeType
.CDATA:
366
if (n.NodeType ==
XmlNodeType
.Element) {
602
if ( reader.NodeType !=
XmlNodeType
.Element ) { // Read till Element is found
708
case
XmlNodeType
.Element: // It's an element
751
case
XmlNodeType
.EntityReference: // Oops. No support for Entity Reference
753
case
XmlNodeType
.Text: // It looks like a text.
754
case
XmlNodeType
.Whitespace: // This actually could be
755
case
XmlNodeType
.CDATA: // if we have XmlText in our table
756
case
XmlNodeType
.SignificantWhitespace:
925
case
XmlNodeType
.Element: // It's an element
972
case
XmlNodeType
.EntityReference: // Oops. No support for Entity Reference
974
case
XmlNodeType
.Text: // It looks like a text.
975
case
XmlNodeType
.Whitespace: // This actually could be
976
case
XmlNodeType
.CDATA: // if we have XmlText in our table
977
case
XmlNodeType
.SignificantWhitespace:
1163
case
XmlNodeType
.Text: // It looks like a text. And we need it.
1164
case
XmlNodeType
.Whitespace:
1165
case
XmlNodeType
.CDATA:
1166
case
XmlNodeType
.SignificantWhitespace:
1191
case
XmlNodeType
.Element:
1243
case
XmlNodeType
.EntityReference: // Oops. No support for Entity Reference
fx\src\data\System\Data\XMLDiffLoader.cs (11)
192
if (
XmlNodeType
.Element == ssync.NodeType) {
202
while ((ssync.NodeType ==
XmlNodeType
.EndElement) && (iSsyncDepth < ssync.Depth) )
240
if (
XmlNodeType
.Element == ssync.NodeType) {
249
while ((ssync.NodeType ==
XmlNodeType
.EndElement) && (iSsyncDepth < ssync.Depth) )
328
if (currentDepth == iRowDepth && row.NodeType ==
XmlNodeType
.EndElement) {
348
while((row.NodeType !=
XmlNodeType
.EndElement) && (row.LocalName!=ln) && (row.NamespaceURI!=ns))
393
if (row.NodeType ==
XmlNodeType
.Text || row.NodeType ==
XmlNodeType
.Whitespace || row.NodeType ==
XmlNodeType
.SignificantWhitespace) {
414
while (reader.NodeType ==
XmlNodeType
.Whitespace || reader.NodeType ==
XmlNodeType
.SignificantWhitespace) {
fx\src\data\System\Data\xmlsaver.cs (1)
2866
public override
XmlNodeType
NodeType {
fx\src\data\System\Data\XmlToDatasetMap.cs (3)
407
XmlNode nodeRegion = (node.NodeType ==
XmlNodeType
.Attribute) ? ((XmlAttribute)node).OwnerElement : node.ParentNode;
410
if(nodeRegion == null || nodeRegion.NodeType !=
XmlNodeType
.Element) {
441
if (node.NodeType ==
XmlNodeType
.Element) { // If element
fx\src\data\System\NewXml\DataPointer.cs (45)
253
else if (node.NodeType ==
XmlNodeType
.Attribute) {
271
if (column == null && node.NodeType ==
XmlNodeType
.Element) {
289
if ((column == null || column.ColumnMapping == MappingType.Attribute) && node.NodeType ==
XmlNodeType
.Element) {
309
internal
XmlNodeType
NodeType {
314
return
XmlNodeType
.None;
320
return
XmlNodeType
.Text;
323
return
XmlNodeType
.Attribute;
326
return
XmlNodeType
.Element;
406
private bool IsLocalNameEmpty (
XmlNodeType
nt) {
408
case
XmlNodeType
.None :
409
case
XmlNodeType
.Text :
410
case
XmlNodeType
.CDATA :
411
case
XmlNodeType
.Comment :
412
case
XmlNodeType
.Document :
413
case
XmlNodeType
.DocumentFragment :
414
case
XmlNodeType
.Whitespace :
415
case
XmlNodeType
.SignificantWhitespace :
416
case
XmlNodeType
.EndElement :
417
case
XmlNodeType
.EndEntity :
419
case
XmlNodeType
.Element :
420
case
XmlNodeType
.Attribute :
421
case
XmlNodeType
.EntityReference :
422
case
XmlNodeType
.Entity :
423
case
XmlNodeType
.ProcessingInstruction :
424
case
XmlNodeType
.DocumentType :
425
case
XmlNodeType
.Notation :
426
case
XmlNodeType
.XmlDeclaration :
494
if (node.NodeType ==
XmlNodeType
.Element) {
506
if (node != null && column == null && node.NodeType ==
XmlNodeType
.Attribute) {
563
XmlNodeType
nt = NodeType;
565
case
XmlNodeType
.DocumentType : {
569
case
XmlNodeType
.Entity : {
573
case
XmlNodeType
.Notation : {
584
XmlNodeType
nt = NodeType;
586
case
XmlNodeType
.DocumentType : {
590
case
XmlNodeType
.Entity : {
594
case
XmlNodeType
.Notation : {
605
if ( NodeType ==
XmlNodeType
.DocumentType ) {
616
if ( child != null && child.NodeType ==
XmlNodeType
.XmlDeclaration )
624
if ( NodeType ==
XmlNodeType
.XmlDeclaration ) {
627
} else if ( NodeType ==
XmlNodeType
.Document ) {
638
if ( NodeType ==
XmlNodeType
.XmlDeclaration ) {
641
} else if ( NodeType ==
XmlNodeType
.Document ) {
652
if ( NodeType ==
XmlNodeType
.XmlDeclaration ) {
655
} else if ( NodeType ==
XmlNodeType
.Document ) {
fx\src\data\System\NewXml\DataSetMappper.cs (8)
120
if ( n.NodeType ==
XmlNodeType
.Element ) {
146
if ( node.NodeType ==
XmlNodeType
.Attribute && mt == MappingType.Attribute )
148
if ( node.NodeType ==
XmlNodeType
.Element && mt == MappingType.Element )
205
if ( node.NodeType ==
XmlNodeType
.Attribute )
251
if ( fc == null || fc.NodeType !=
XmlNodeType
.Text || fc.NextSibling != null ) {
262
if ( n.NodeType !=
XmlNodeType
.Element ) {
291
if ( fc == null || fc.NodeType !=
XmlNodeType
.Text || fc.NextSibling != null ) {
300
if ( n.NodeType !=
XmlNodeType
.Element ) {
fx\src\data\System\NewXml\RegionIterator.cs (3)
113
Debug.Assert( this.CurrentNode.NodeType ==
XmlNodeType
.Element );
149
while ( n.NodeType ==
XmlNodeType
.Whitespace ) {
164
if ( n.NodeType !=
XmlNodeType
.Whitespace )
fx\src\data\System\NewXml\XmlBoundElement.cs (5)
226
Debug.Assert( dp.NodeType ==
XmlNodeType
.Element );
255
Debug.Assert( dp.NodeType ==
XmlNodeType
.Element );
288
case
XmlNodeType
.Attribute:
305
case
XmlNodeType
.Element:
309
case
XmlNodeType
.Text:
fx\src\data\System\NewXml\XmlDataDocument.cs (30)
686
if ( node.NodeType !=
XmlNodeType
.Element )
901
if (newNode.NodeType ==
XmlNodeType
.Element) {
939
if ( dp.NodeType ==
XmlNodeType
.Element )
957
case
XmlNodeType
.DocumentFragment:
959
case
XmlNodeType
.DocumentType:
962
case
XmlNodeType
.XmlDeclaration:
968
case
XmlNodeType
.Text:
970
case
XmlNodeType
.CDATA:
972
case
XmlNodeType
.ProcessingInstruction:
974
case
XmlNodeType
.Comment:
976
case
XmlNodeType
.Whitespace:
978
case
XmlNodeType
.SignificantWhitespace:
981
case
XmlNodeType
.Element:
983
case
XmlNodeType
.Attribute:
985
case
XmlNodeType
.EntityReference:
993
case
XmlNodeType
.Text:
994
case
XmlNodeType
.CDATA:
995
case
XmlNodeType
.Whitespace:
996
case
XmlNodeType
.SignificantWhitespace:
999
case
XmlNodeType
.EntityReference:
1356
if ( iter.CurrentNode.NodeType ==
XmlNodeType
.Element ) {
2049
Debug.Assert( parent.NodeType !=
XmlNodeType
.Attribute ); // We need to get get the grand-parent region
2097
while ( n != null && n.NodeType ==
XmlNodeType
.Whitespace )
2101
if ( n.NodeType ==
XmlNodeType
.Text )
2619
internal static bool IsTextNode(
XmlNodeType
nt ) {
2621
case
XmlNodeType
.Text:
2622
case
XmlNodeType
.CDATA:
2623
case
XmlNodeType
.Whitespace:
2624
case
XmlNodeType
.SignificantWhitespace:
2664
if ( parent != null && parent.NodeType ==
XmlNodeType
.Attribute )
fx\src\data\System\NewXml\XPathNodePointer.cs (54)
40
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.None)] = -1;
41
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Element)] = (int)XPathNodeType.Element;
42
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Attribute)] = (int)XPathNodeType.Attribute;
43
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Text)] = (int)XPathNodeType.Text;
44
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.CDATA)] = (int)XPathNodeType.Text;
45
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.EntityReference)] = -1;
46
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Entity)] = -1;
47
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.ProcessingInstruction)] = (int)XPathNodeType.ProcessingInstruction;
48
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Comment)] = (int)XPathNodeType.Comment;
49
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Document)] = (int)XPathNodeType.Root;
50
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.DocumentType)] = -1;
51
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.DocumentFragment)] = (int)XPathNodeType.Root;
52
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Notation)] = -1;
53
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.Whitespace)] = (int)XPathNodeType.Whitespace;
54
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.SignificantWhitespace)] = (int)XPathNodeType.SignificantWhitespace;
55
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.EndElement)] = -1;
56
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.EndEntity)] = -1;
57
xmlNodeType_To_XpathNodeType_Map[(int)(
XmlNodeType
.XmlDeclaration)] = -1;
67
case
XmlNodeType
.Whitespace :
69
case
XmlNodeType
.SignificantWhitespace :
72
case
XmlNodeType
.Text :
73
case
XmlNodeType
.CDATA :
98
private bool IsNamespaceNode(
XmlNodeType
nt, string ns ) {
99
if ( nt ==
XmlNodeType
.Attribute && ns == s_strReservedXmlns )
139
if (_node.NodeType ==
XmlNodeType
.Element) {
184
XmlNodeType
nt = this._node.NodeType;
187
if ( nt ==
XmlNodeType
.Element || nt ==
XmlNodeType
.Attribute || nt ==
XmlNodeType
.ProcessingInstruction )
209
XmlNodeType
nt = this._node.NodeType;
216
if ( nt ==
XmlNodeType
.Element || nt ==
XmlNodeType
.Attribute || nt ==
XmlNodeType
.ProcessingInstruction )
320
if ( this._node.NodeType ==
XmlNodeType
.Document ) {
382
if ( curNode.NodeType ==
XmlNodeType
.Attribute )
490
if (_column == null && _node.NodeType ==
XmlNodeType
.Element) {
556
if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.NodeType ==
XmlNodeType
.Element) {
585
if ( bFirst && ( _column != null || _node.NodeType !=
XmlNodeType
.Element ) )
590
if ( _column == null && _node.NodeType !=
XmlNodeType
.Attribute )
900
if ( _node.NodeType ==
XmlNodeType
.Attribute )
970
XmlNode parent = ( ( curNode.NodeType ==
XmlNodeType
.Attribute ) ? ( ((XmlAttribute)curNode).OwnerElement ) : ( curNode.ParentNode ) );
1064
curNode1 = ( ( curNode1.NodeType ==
XmlNodeType
.Attribute ) ? ( ((XmlAttribute)curNode1).OwnerElement ) : ( curNode1.ParentNode ) );
1072
curNode2 = ( ( curNode2.NodeType ==
XmlNodeType
.Attribute ) ? ( ((XmlAttribute)curNode2).OwnerElement ) : ( curNode2.ParentNode ) );
1233
XmlNodeType
nt = node.NodeType;
1237
while ( node != null && ( ( nt = node.NodeType ) !=
XmlNodeType
.Element ) ) {
1238
if ( nt ==
XmlNodeType
.Attribute )
1270
XmlNodeType
nt = node.NodeType;
1302
} while ( node != null && node.NodeType !=
XmlNodeType
.Element );
1375
} while ( node != null && node.NodeType !=
XmlNodeType
.Element );
1400
} while ( node != null && node.NodeType !=
XmlNodeType
.Element );
1435
} while ( node != null && node.NodeType !=
XmlNodeType
.Element );
1437
else if ( this._node.NodeType ==
XmlNodeType
.Attribute ) {
1452
} while ( node != null && node.NodeType !=
XmlNodeType
.Element );
1463
} while ( node != null && node.NodeType ==
XmlNodeType
.Element );
System.Data.Entity (22)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (5)
143
if (sourceReader.NodeType !=
XmlNodeType
.Element)
145
while (sourceReader.Read() && sourceReader.NodeType !=
XmlNodeType
.Element)
304
if (reader != null && !IsValidateableXmlNamespace(reader.NamespaceURI, reader.NodeType ==
XmlNodeType
.Attribute))
318
if ( (reader.NodeType ==
XmlNodeType
.Attribute) || (e.Severity == System.Xml.Schema.XmlSeverityType.Warning))
326
if ((this.SchemaVersion >= XmlConstants.EdmVersionForV2) && (reader.NodeType ==
XmlNodeType
.Attribute)
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (15)
241
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
266
case
XmlNodeType
.Element:
270
case
XmlNodeType
.EndElement:
276
case
XmlNodeType
.CDATA:
277
case
XmlNodeType
.Text:
278
case
XmlNodeType
.SignificantWhitespace:
283
case
XmlNodeType
.Whitespace:
284
case
XmlNodeType
.XmlDeclaration:
285
case
XmlNodeType
.Comment:
286
case
XmlNodeType
.Notation:
287
case
XmlNodeType
.ProcessingInstruction:
293
case
XmlNodeType
.DocumentType:
294
case
XmlNodeType
.EntityReference:
657
if (reader.NodeType ==
XmlNodeType
.Element)
706
Debug.Assert(reader.NodeType ==
XmlNodeType
.Attribute, "called an attribute function when not on an attribute");
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (2)
205
if (!reader.EOF && reader.NodeType !=
XmlNodeType
.Element)
207
while (reader.Read() && reader.NodeType !=
XmlNodeType
.Element)
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityFrameworkVersions.cs (2)
198
if (!reader.EOF && reader.NodeType !=
XmlNodeType
.Element)
200
while (reader.Read() && reader.NodeType !=
XmlNodeType
.Element)
System.Data.Linq (18)
Mapping\MappingSource.cs (18)
242
if (reader.NodeType !=
XmlNodeType
.EndElement) {
251
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
269
while (reader.NodeType !=
XmlNodeType
.EndElement) {
270
if (reader.NodeType ==
XmlNodeType
.Whitespace || !IsInNamespace(reader)) {
325
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
344
while (reader.NodeType !=
XmlNodeType
.EndElement) {
345
if (reader.NodeType ==
XmlNodeType
.Whitespace || !IsInNamespace(reader)) {
376
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
394
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
418
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
435
while (reader.NodeType !=
XmlNodeType
.EndElement) {
436
if (reader.NodeType ==
XmlNodeType
.Whitespace || !IsInNamespace(reader)) {
469
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
478
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
502
while (reader.NodeType !=
XmlNodeType
.EndElement) {
503
if (reader.NodeType ==
XmlNodeType
.Whitespace || !IsInNamespace(reader)) {
533
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
567
System.Diagnostics.Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
System.Data.Services (56)
System\Data\Services\Epm\EpmCustomContentDeSerializer.cs (18)
63
case
XmlNodeType
.Element:
101
case
XmlNodeType
.CDATA:
102
case
XmlNodeType
.Text:
103
case
XmlNodeType
.SignificantWhitespace:
115
case
XmlNodeType
.EndElement:
128
case
XmlNodeType
.Comment:
129
case
XmlNodeType
.Whitespace:
132
case
XmlNodeType
.None:
133
case
XmlNodeType
.XmlDeclaration:
134
case
XmlNodeType
.Attribute:
135
case
XmlNodeType
.EndEntity:
136
case
XmlNodeType
.EntityReference:
137
case
XmlNodeType
.Entity:
138
case
XmlNodeType
.Document:
139
case
XmlNodeType
.DocumentType:
140
case
XmlNodeType
.DocumentFragment:
141
case
XmlNodeType
.Notation:
142
case
XmlNodeType
.ProcessingInstruction:
System\Data\Services\Serializers\PlainXmlDeserializer.cs (25)
213
case
XmlNodeType
.Element:
243
this.xmlReader.NodeType !=
XmlNodeType
.Element,
262
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element, "reader.NodeType == XmlNodeType.Element");
274
if (reader.NodeType !=
XmlNodeType
.EndElement)
296
Debug.Assert(
XmlNodeType
.Element == reader.NodeType, "not positioned on Element");
314
case
XmlNodeType
.EndElement:
317
case
XmlNodeType
.CDATA:
318
case
XmlNodeType
.Text:
319
case
XmlNodeType
.SignificantWhitespace:
337
case
XmlNodeType
.Comment:
338
case
XmlNodeType
.Whitespace:
342
case
XmlNodeType
.None:
343
case
XmlNodeType
.XmlDeclaration:
344
case
XmlNodeType
.Attribute:
345
case
XmlNodeType
.EndEntity:
346
case
XmlNodeType
.EntityReference:
347
case
XmlNodeType
.Entity:
348
case
XmlNodeType
.Document:
349
case
XmlNodeType
.DocumentType:
350
case
XmlNodeType
.DocumentFragment:
351
case
XmlNodeType
.Notation:
352
case
XmlNodeType
.ProcessingInstruction:
396
case
XmlNodeType
.Element:
415
reader.NodeType !=
XmlNodeType
.Element,
569
reader.NodeType ==
XmlNodeType
.EndElement,
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
258
reader.NodeType ==
XmlNodeType
.Element,
608
if (linkReader.NodeType ==
XmlNodeType
.Element)
System\Data\Services\WebUtil.cs (11)
1178
case
XmlNodeType
.Element:
1180
case
XmlNodeType
.Comment:
1181
case
XmlNodeType
.None:
1182
case
XmlNodeType
.ProcessingInstruction:
1183
case
XmlNodeType
.XmlDeclaration:
1184
case
XmlNodeType
.Whitespace:
1186
case
XmlNodeType
.Text:
1399
return ((
XmlNodeType
.Element == reader.NodeType) || (
XmlNodeType
.EndElement == reader.NodeType)) &&
1420
case
XmlNodeType
.Element:
1430
case
XmlNodeType
.EndElement:
System.Data.Services.Client (66)
System\Data\Services\Client\AtomMaterializer.cs (2)
1479
var node = element.Nodes().Where(n => n.NodeType ==
XmlNodeType
.Text || n.NodeType ==
XmlNodeType
.SignificantWhitespace).FirstOrDefault();
System\Data\Services\Client\AtomParser.cs (35)
207
this.reader.NodeType ==
XmlNodeType
.Element || this.reader.NodeType ==
XmlNodeType
.EndElement,
212
if (this.reader.NodeType ==
XmlNodeType
.EndElement)
341
reader.NodeType ==
XmlNodeType
.Element || reader.NodeType ==
XmlNodeType
.EndElement,
390
Debug.Assert(reader.NodeType !=
XmlNodeType
.EndElement, "reader.NodeType != XmlNodeType.EndElement");
414
(reader.NodeType ==
XmlNodeType
.EndElement ||
415
(reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement))))
449
reader.NodeType ==
XmlNodeType
.EndElement,
454
if (reader.NodeType ==
XmlNodeType
.SignificantWhitespace ||
455
reader.NodeType ==
XmlNodeType
.Text)
480
case
XmlNodeType
.CDATA:
481
case
XmlNodeType
.EntityReference:
482
case
XmlNodeType
.EndEntity:
485
case
XmlNodeType
.Text:
486
case
XmlNodeType
.SignificantWhitespace:
490
case
XmlNodeType
.Element:
491
case
XmlNodeType
.EndElement:
532
Debug.Assert(this.reader.NodeType ==
XmlNodeType
.Element, "this.reader.NodeType == XmlNodeType.Element");
572
else if (this.reader.NodeType !=
XmlNodeType
.EndElement)
587
this.reader.NodeType ==
XmlNodeType
.Element,
750
case
XmlNodeType
.CDATA:
751
case
XmlNodeType
.SignificantWhitespace:
752
case
XmlNodeType
.Text:
761
case
XmlNodeType
.Comment:
762
case
XmlNodeType
.Whitespace:
763
case
XmlNodeType
.ProcessingInstruction:
764
case
XmlNodeType
.EndElement:
769
case
XmlNodeType
.Element:
799
this.reader.NodeType ==
XmlNodeType
.Element,
839
Debug.Assert(this.reader.NodeType ==
XmlNodeType
.Element, "this.reader.NodeType == XmlNodeType.Element");
848
if (this.reader.NodeType ==
XmlNodeType
.EndElement)
853
if (this.reader.NodeType ==
XmlNodeType
.Element)
875
Debug.Assert(this.reader.NodeType ==
XmlNodeType
.Element, "this.reader.NodeType == XmlNodeType.Element");
899
if (this.reader.NodeType ==
XmlNodeType
.Element)
System\Data\Services\Client\MaterializeFromAtom.cs (11)
380
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element, "reader.NodeType == XmlNodeType.Element");
390
if (reader.NodeType ==
XmlNodeType
.EndElement && reader.Depth == readerDepth)
486
while (this.reader.NodeType !=
XmlNodeType
.Element && this.reader.Read())
558
reader.NodeType ==
XmlNodeType
.Element,
573
case
XmlNodeType
.EndElement:
575
case
XmlNodeType
.CDATA:
576
case
XmlNodeType
.Text:
577
case
XmlNodeType
.SignificantWhitespace:
585
case
XmlNodeType
.Comment:
586
case
XmlNodeType
.Whitespace:
590
case
XmlNodeType
.Element:
System\Data\Services\Client\Util.cs (3)
415
return ((
XmlNodeType
.Element == reader.NodeType) || (
XmlNodeType
.EndElement == reader.NodeType)) &&
563
Debug.Assert(
XmlNodeType
.Element == reader.NodeType, "not positioned on Element");
System\Data\Services\Client\Xml\XmlAtomErrorReader.cs (12)
41
if (this.NodeType ==
XmlNodeType
.Element &&
64
Debug.Assert(
XmlNodeType
.Element == reader.NodeType, "not positioned on Element");
78
case
XmlNodeType
.EndElement:
80
case
XmlNodeType
.CDATA:
81
case
XmlNodeType
.Text:
82
case
XmlNodeType
.SignificantWhitespace:
90
case
XmlNodeType
.Comment:
91
case
XmlNodeType
.Whitespace:
93
case
XmlNodeType
.Element:
109
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element, "reader.NodeType == XmlNodeType.Element");
115
if (reader.NodeType ==
XmlNodeType
.Element)
128
else if (reader.NodeType ==
XmlNodeType
.EndElement)
System\Data\Services\Client\Xml\XmlWrappingReader.cs (3)
211
public override
XmlNodeType
NodeType
439
if (this.reader.NodeType ==
XmlNodeType
.EndElement)
457
if (this.reader.NodeType ==
XmlNodeType
.Element &&
System.Data.SqlXml (220)
System\Xml\Xsl\QIL\QilXmlReader.cs (10)
75
case
XmlNodeType
.Element:
83
case
XmlNodeType
.EndElement:
87
case
XmlNodeType
.Whitespace:
88
case
XmlNodeType
.SignificantWhitespace:
89
case
XmlNodeType
.XmlDeclaration:
90
case
XmlNodeType
.Comment:
91
case
XmlNodeType
.ProcessingInstruction:
391
case
XmlNodeType
.Text:
392
case
XmlNodeType
.SignificantWhitespace:
393
case
XmlNodeType
.Whitespace:
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (8)
79
case
XmlNodeType
.Element:
89
case
XmlNodeType
.EndElement:
94
case
XmlNodeType
.Text:
95
case
XmlNodeType
.CDATA:
103
goto case
XmlNodeType
.Whitespace;
115
case
XmlNodeType
.Whitespace:
116
case
XmlNodeType
.SignificantWhitespace:
132
case
XmlNodeType
.EndEntity:
System\Xml\Xsl\Xslt\XsltInput.cs (73)
37
private
XmlNodeType
nodeType;
59
this.nodeType =
XmlNodeType
.Document;
63
public
XmlNodeType
NodeType { get { return nodeType ==
XmlNodeType
.Element && 0 < currentRecord ?
XmlNodeType
.Attribute : nodeType; } }
116
while (MoveToNextSibling() && nodeType ==
XmlNodeType
.Whitespace) ;
119
if (nodeType ==
XmlNodeType
.Element) {
182
reader.NodeType ==
XmlNodeType
.Whitespace || reader.NodeType ==
XmlNodeType
.SignificantWhitespace ||
183
reader.NodeType ==
XmlNodeType
.Text || reader.NodeType ==
XmlNodeType
.CDATA
192
bool isCDATA = (reader.NodeType ==
XmlNodeType
.CDATA);
219
Debug.Assert(reader.NodeType ==
XmlNodeType
.EntityReference);
232
Debug.Assert(reader.NodeType ==
XmlNodeType
.Text || reader.NodeType ==
XmlNodeType
.Whitespace || reader.NodeType ==
XmlNodeType
.SignificantWhitespace);
235
Debug.Assert(reader.NodeType ==
XmlNodeType
.EndEntity);
247
Debug.Assert(reader.NodeType ==
XmlNodeType
.Attribute, "reader.NodeType == XmlNodeType.Attribute");
270
int correction = (reader.NodeType ==
XmlNodeType
.EntityReference) ? -2 : -1;
281
case
XmlNodeType
.EntityReference:
284
case
XmlNodeType
.EndEntity:
287
Debug.Assert(reader.NodeType ==
XmlNodeType
.Text, "Unexpected node type inside attribute value");
295
Debug.Assert(reader.NodeType !=
XmlNodeType
.EntityReference);
296
int correction = ((reader.NodeType ==
XmlNodeType
.EndEntity) ? 1 : lastText.Length) + 1;
309
Debug.Assert(nodeType ==
XmlNodeType
.Element, "To call MoveToFirstChild() XsltI---- should be positioned on an Element.");
317
Debug.Assert(nodeType !=
XmlNodeType
.Element || IsEmptyElement, "On non-empty elements we should call MoveToFirstChild()");
318
if (nodeType ==
XmlNodeType
.Element || nodeType ==
XmlNodeType
.EndElement) {
325
if (nodeType ==
XmlNodeType
.Element && MoveToFirstChild()) {
338
case
XmlNodeType
.Text:
340
case
XmlNodeType
.CDATA:
344
goto case
XmlNodeType
.SignificantWhitespace;
345
case
XmlNodeType
.Whitespace:
346
case
XmlNodeType
.SignificantWhitespace:
352
case
XmlNodeType
.EntityReference:
370
case
XmlNodeType
.EndEntity:
375
! textIsWhite ?
XmlNodeType
.Text :
376
textPreserveWS ?
XmlNodeType
.SignificantWhitespace :
377
/*default: */
XmlNodeType
.Whitespace
386
Debug.Assert(nodeType ==
XmlNodeType
.Text || nodeType ==
XmlNodeType
.Whitespace || nodeType ==
XmlNodeType
.SignificantWhitespace);
396
case
XmlNodeType
.Text:
397
case
XmlNodeType
.CDATA:
398
case
XmlNodeType
.Whitespace:
399
case
XmlNodeType
.SignificantWhitespace:
400
case
XmlNodeType
.EntityReference:
408
case
XmlNodeType
.Element:
412
case
XmlNodeType
.EndElement:
413
nodeType =
XmlNodeType
.EndElement;
428
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
432
nodeType =
XmlNodeType
.Element;
454
Debug.Assert(nodeType ==
XmlNodeType
.Element, "For MoveToElement() we should be positioned on Element or Attribute");
459
Debug.Assert(nodeType ==
XmlNodeType
.Element, "For MoveToLiteralAttribute() we should be positioned on Element or Attribute");
470
Debug.Assert(nodeType ==
XmlNodeType
.Element, "For MoveToLiteralAttribute() we should be positioned on Element or Attribute");
509
Debug.Assert(nodeType ==
XmlNodeType
.Element || nodeType ==
XmlNodeType
.EndElement, "Input is positioned on element or attribute");
539
Debug.Assert(nodeType !=
XmlNodeType
.Element || attributesRead, "Should first read attributes");
545
Debug.Assert(nodeType !=
XmlNodeType
.Element || attributesRead, "Should first read attributes");
552
Debug.Assert(nodeType !=
XmlNodeType
.Element || attributesRead, "Should first read attributes");
618
Debug.Assert(NodeType ==
XmlNodeType
.Element);
722
Debug.Assert(NodeType ==
XmlNodeType
.Element);
785
Debug.Assert(NodeType ==
XmlNodeType
.Element && IsXsltNamespace());
874
private static int PositionAdjustment(
XmlNodeType
nt) {
876
case
XmlNodeType
.Element:
878
case
XmlNodeType
.CDATA:
880
case
XmlNodeType
.ProcessingInstruction:
882
case
XmlNodeType
.Comment:
884
case
XmlNodeType
.EndElement:
886
case
XmlNodeType
.EntityReference:
1001
Debug.Assert(input.NodeType ==
XmlNodeType
.EndElement);
1004
Debug.Assert(input.NodeType ==
XmlNodeType
.Element || input.NodeType ==
XmlNodeType
.Attribute);
System\Xml\Xsl\Xslt\XsltLoader.cs (33)
258
Debug.Assert(input.NodeType ==
XmlNodeType
.Element);
317
case
XmlNodeType
.Element:
376
case
XmlNodeType
.Whitespace:
377
case
XmlNodeType
.SignificantWhitespace:
380
Debug.Assert(input.NodeType ==
XmlNodeType
.Text);
900
case
XmlNodeType
.Element:
909
case
XmlNodeType
.Whitespace:
910
case
XmlNodeType
.SignificantWhitespace:
913
Debug.Assert(input.NodeType ==
XmlNodeType
.Text);
1123
case
XmlNodeType
.Text:
1139
case
XmlNodeType
.Element:
1156
input.NodeType ==
XmlNodeType
.SignificantWhitespace ||
1157
input.NodeType ==
XmlNodeType
.Whitespace
1161
goto case
XmlNodeType
.Text;
1273
case
XmlNodeType
.Element:
1335
case
XmlNodeType
.SignificantWhitespace:
1338
case
XmlNodeType
.Whitespace:
1341
Debug.Assert(input.NodeType ==
XmlNodeType
.Text);
1343
goto case
XmlNodeType
.SignificantWhitespace;
1360
case
XmlNodeType
.Element:
1374
case
XmlNodeType
.Whitespace:
1375
case
XmlNodeType
.SignificantWhitespace:
1378
Debug.Assert(input.NodeType ==
XmlNodeType
.Text);
1529
case
XmlNodeType
.Element:
1559
case
XmlNodeType
.Whitespace:
1560
case
XmlNodeType
.SignificantWhitespace:
1563
Debug.Assert(input.NodeType ==
XmlNodeType
.Text);
1858
case
XmlNodeType
.Text:
1859
case
XmlNodeType
.Whitespace:
1860
case
XmlNodeType
.SignificantWhitespace:
1865
Debug.Assert(input.NodeType ==
XmlNodeType
.Element);
2310
Debug.Assert(input.NodeType ==
XmlNodeType
.Element);
2764
if (input.NodeType !=
XmlNodeType
.Whitespace) {
System\Xml\Xsl\XsltOld\BuilderInfo.cs (3)
23
private
XmlNodeType
nodeType;
75
Debug.Assert(info.NodeType !=
XmlNodeType
.Text || XmlCharType.Instance.IsOnlyWhitespace(info.Value));
155
internal
XmlNodeType
NodeType {
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (8)
38
case
XmlNodeType
.Element: {
62
case
XmlNodeType
.Text:
65
case
XmlNodeType
.Whitespace:
67
case
XmlNodeType
.SignificantWhitespace:
71
case
XmlNodeType
.ProcessingInstruction:
74
case
XmlNodeType
.Comment:
78
case
XmlNodeType
.Document:
81
case
XmlNodeType
.EndElement:
System\Xml\Xsl\XsltOld\ReaderOutput.cs (21)
58
public override
XmlNodeType
NodeType {
255
if (NodeType ==
XmlNodeType
.Attribute || this.currentInfo == this.attributeValue) {
288
case
XmlNodeType
.Text :
290
this.currentInfo.NodeType =
XmlNodeType
.Whitespace;
291
goto case
XmlNodeType
.Whitespace;
295
case
XmlNodeType
.Whitespace :
300
this.currentInfo.NodeType =
XmlNodeType
.SignificantWhitespace;
333
if (NodeType ==
XmlNodeType
.Element || NodeType ==
XmlNodeType
.Attribute || this.currentInfo == this.attributeValue) {
347
case
XmlNodeType
.Text:
348
case
XmlNodeType
.Whitespace:
349
case
XmlNodeType
.SignificantWhitespace:
371
if (NodeType ==
XmlNodeType
.Element && ! IsEmptyElement) {
382
Debug.Assert(NodeType ==
XmlNodeType
.EndElement);
388
else if(NodeType ==
XmlNodeType
.Attribute) {
400
if (NodeType ==
XmlNodeType
.Element) {
423
else if(NodeType ==
XmlNodeType
.Attribute) {
454
Debug.Assert(NodeType !=
XmlNodeType
.EntityReference);
456
if (NodeType !=
XmlNodeType
.EntityReference) {
462
if (ReadState != ReadState.Interactive || NodeType !=
XmlNodeType
.Attribute) {
468
this.attributeValue.NodeType =
XmlNodeType
.Text;
System\Xml\Xsl\XsltOld\RecordBuilder.cs (17)
181
this.currentInfo.NodeType =
XmlNodeType
.Text;
258
this.currentInfo.NodeType =
XmlNodeType
.Element;
272
this.currentInfo.NodeType =
XmlNodeType
.EndElement;
299
attribute.NodeType =
XmlNodeType
.Attribute;
334
currentInfo.NodeType =
XmlNodeType
.Attribute;
338
this.currentInfo.NodeType =
XmlNodeType
.ProcessingInstruction;
347
this.currentInfo.NodeType =
XmlNodeType
.Comment;
373
this.currentInfo.NodeType =
XmlNodeType
.None;
427
Debug.Assert(this.mainNode.NodeType ==
XmlNodeType
.Element);
447
Debug.Assert(this.mainNode.NodeType ==
XmlNodeType
.Element);
525
Debug.Assert(this.mainNode.NodeType ==
XmlNodeType
.Comment);
568
Debug.Assert(this.mainNode.NodeType ==
XmlNodeType
.ProcessingInstruction || this.mainNode.NodeType ==
XmlNodeType
.XmlDeclaration);
610
case
XmlNodeType
.Element:
619
case
XmlNodeType
.Comment:
622
case
XmlNodeType
.ProcessingInstruction:
649
ns.NodeType =
XmlNodeType
.Attribute;
System\Xml\Xsl\XsltOld\SequentialOutput.cs (27)
111
Debug.Assert(record.MainNode.NodeType ==
XmlNodeType
.Element);
325
case
XmlNodeType
.Element:
330
case
XmlNodeType
.Text:
331
case
XmlNodeType
.Whitespace:
332
case
XmlNodeType
.SignificantWhitespace:
378
case
XmlNodeType
.Element:
381
case
XmlNodeType
.Text:
382
case
XmlNodeType
.Whitespace:
383
case
XmlNodeType
.SignificantWhitespace:
386
case
XmlNodeType
.CDATA:
389
case
XmlNodeType
.EntityReference:
394
case
XmlNodeType
.ProcessingInstruction:
397
case
XmlNodeType
.Comment:
403
case
XmlNodeType
.Document:
405
case
XmlNodeType
.DocumentType:
408
case
XmlNodeType
.EndElement:
424
case
XmlNodeType
.Element:
427
case
XmlNodeType
.Text:
428
case
XmlNodeType
.Whitespace:
429
case
XmlNodeType
.SignificantWhitespace:
432
case
XmlNodeType
.CDATA:
435
case
XmlNodeType
.EntityReference:
440
case
XmlNodeType
.ProcessingInstruction:
443
case
XmlNodeType
.Comment:
448
case
XmlNodeType
.Document:
450
case
XmlNodeType
.DocumentType:
453
case
XmlNodeType
.EndElement:
System\Xml\Xsl\XsltOld\TextOnlyOutput.cs (3)
59
case
XmlNodeType
.Text:
60
case
XmlNodeType
.Whitespace:
61
case
XmlNodeType
.SignificantWhitespace:
System\Xml\Xsl\XsltOld\WriterOutput.cs (17)
35
case
XmlNodeType
.Element:
44
case
XmlNodeType
.Text:
45
case
XmlNodeType
.Whitespace:
46
case
XmlNodeType
.SignificantWhitespace:
49
case
XmlNodeType
.CDATA:
53
case
XmlNodeType
.EntityReference:
56
case
XmlNodeType
.ProcessingInstruction:
59
case
XmlNodeType
.Comment:
62
case
XmlNodeType
.Document:
64
case
XmlNodeType
.DocumentType:
67
case
XmlNodeType
.EndElement:
71
case
XmlNodeType
.None:
72
case
XmlNodeType
.Attribute:
73
case
XmlNodeType
.Entity:
74
case
XmlNodeType
.Notation:
75
case
XmlNodeType
.DocumentFragment:
76
case
XmlNodeType
.EndEntity:
System.IdentityModel (51)
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
43
if (node.NodeType !=
XmlNodeType
.Element)
System\IdentityModel\DelegatingXmlDictionaryReader.cs (1)
173
public override
XmlNodeType
NodeType
System\IdentityModel\EnvelopedSignatureReader.cs (2)
143
if ((base.NodeType ==
XmlNodeType
.Element) && (!base.IsEmptyElement))
148
if (base.NodeType ==
XmlNodeType
.EndElement)
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (1)
202
public override
XmlNodeType
NodeType
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (4)
3156
while (reader.NodeType ==
XmlNodeType
.Whitespace)
3163
if (reader.NodeType ==
XmlNodeType
.Element)
3165
while (reader.NodeType ==
XmlNodeType
.Element)
5330
if (!requireKeyInfo &&
XmlNodeType
.EndElement != reader.NodeType)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (3)
2732
while (reader.NodeType ==
XmlNodeType
.Whitespace)
2739
if (reader.NodeType ==
XmlNodeType
.Element)
2741
while (reader.NodeType ==
XmlNodeType
.Element)
System\IdentityModel\WrappedReader.cs (36)
156
if (NodeType ==
XmlNodeType
.Attribute)
163
while (NodeType !=
XmlNodeType
.Element && NodeType !=
XmlNodeType
.EndElement)
168
case
XmlNodeType
.Text:
173
case
XmlNodeType
.Whitespace:
254
case
XmlNodeType
.Element:
277
case
XmlNodeType
.CDATA:
278
case
XmlNodeType
.Comment:
279
case
XmlNodeType
.Text:
280
case
XmlNodeType
.EntityReference:
281
case
XmlNodeType
.EndEntity:
282
case
XmlNodeType
.SignificantWhitespace:
283
case
XmlNodeType
.Whitespace:
288
case
XmlNodeType
.EndElement:
297
case
XmlNodeType
.DocumentType:
298
case
XmlNodeType
.XmlDeclaration:
374
public void Add(
XmlNodeType
type, string value)
479
public
XmlNodeType
NodeType
536
DiagnosticUtility.DebugAssert(this.NodeType ==
XmlNodeType
.Element, "");
537
if (this.position < this.Count - 1 && this.entries[this.position + 1].nodeType ==
XmlNodeType
.Attribute)
560
DiagnosticUtility.DebugAssert(this.NodeType ==
XmlNodeType
.Attribute, "");
561
if (this.position < this.count - 1 && this.entries[this.position + 1].nodeType ==
XmlNodeType
.Attribute)
589
case
XmlNodeType
.Element:
617
goto case
XmlNodeType
.EndElement;
620
case
XmlNodeType
.EndElement:
632
case
XmlNodeType
.CDATA:
638
case
XmlNodeType
.Comment:
644
case
XmlNodeType
.Text:
650
case
XmlNodeType
.SignificantWhitespace:
651
case
XmlNodeType
.Whitespace:
657
case
XmlNodeType
.DocumentType:
658
case
XmlNodeType
.XmlDeclaration:
669
internal
XmlNodeType
nodeType;
686
public void Set(
XmlNodeType
nodeType, string value)
694
this.nodeType =
XmlNodeType
.Attribute;
703
this.nodeType =
XmlNodeType
.Element;
System\IdentityModel\WrappedXmlDictionaryReader.cs (1)
139
public override
XmlNodeType
NodeType
System\IdentityModel\XmlHelper.cs (2)
18
while (reader.NodeType ==
XmlNodeType
.Whitespace || reader.NodeType ==
XmlNodeType
.SignificantWhitespace)
System.Runtime.Remoting (8)
metadata\wsdlparser.cs (8)
113
XmlNodeType
nodeType = _XMLReader.MoveToContent();
114
while (nodeType ==
XmlNodeType
.EndElement)
118
if (nodeType ==
XmlNodeType
.None)
122
return(nodeType !=
XmlNodeType
.None);
130
XmlNodeType
nodeType = _XMLReader.MoveToContent();
131
while (nodeType ==
XmlNodeType
.EndElement)
135
if (nodeType ==
XmlNodeType
.None)
140
return(nodeType !=
XmlNodeType
.None);
System.Runtime.Serialization (207)
System\Runtime\Serialization\DataContractSerializer.cs (1)
476
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingElementAtDeserialize,
XmlNodeType
.Element), xmlReader));
System\Runtime\Serialization\ExtensionDataReader.cs (9)
39
XmlNodeType
nodeType;
121
public override
XmlNodeType
NodeType { get { return IsXmlDataNode ? xmlNodeReader.NodeType : nodeType; } }
170
this.nodeType =
XmlNodeType
.Attribute;
218
if (this.nodeType !=
XmlNodeType
.Attribute)
227
this.nodeType =
XmlNodeType
.Element;
301
if (nodeType ==
XmlNodeType
.Attribute && MoveToNextAttribute())
316
this.nodeType =
XmlNodeType
.Text;
325
this.nodeType =
XmlNodeType
.EndElement;
338
this.nodeType =
XmlNodeType
.None;
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
423
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExpectingElementAtDeserialize,
XmlNodeType
.Element), xmlReader));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (7)
807
LocalBuilder nodeType = ilg.DeclareLocal(typeof(
XmlNodeType
), "nodeType");
813
ilg.Load(
XmlNodeType
.EndElement);
817
ilg.Load(
XmlNodeType
.Element);
819
ThrowUnexpectedStateException(
XmlNodeType
.Element);
1058
ThrowUnexpectedStateException(
XmlNodeType
.Element);
1076
ilg.Load(
XmlNodeType
.EndElement);
1080
void ThrowUnexpectedStateException(
XmlNodeType
expectedState)
System\Runtime\Serialization\Json\XmlJsonReader.cs (4)
319
return (this.Node.NodeType ==
XmlNodeType
.Attribute || this.Node is XmlAttributeTextNode);
336
(this.Node.NodeType ==
XmlNodeType
.Text));
573
else if (this.Node.NodeType ==
XmlNodeType
.Element)
586
else if (this.Node.NodeType ==
XmlNodeType
.EndElement)
System\Runtime\Serialization\NetDataContractSerializer.cs (1)
427
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(SR.GetString(SR.ExpectingElementAtDeserialize,
XmlNodeType
.Element), xmlReader));
System\Runtime\Serialization\SchemaImporter.cs (1)
1429
if (child.NodeType ==
XmlNodeType
.Element)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
682
createUnexpectedStateExceptionMethod = typeof(XmlObjectSerializerReadContext).GetMethod("CreateUnexpectedStateException", Globals.ScanAllMembers, null, new Type[] { typeof(
XmlNodeType
), typeof(XmlReaderDelegator) }, null);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
904
ThrowUnexpectedStateException(
XmlNodeType
.Element);
922
ilg.Load(
XmlNodeType
.EndElement);
926
void ThrowUnexpectedStateException(
XmlNodeType
expectedState)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (41)
252
return (xmlReader.MoveToContent() !=
XmlNodeType
.EndElement);
298
if (xmlReader.NodeType !=
XmlNodeType
.Element)
299
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
509
if (xmlReader.NodeType ==
XmlNodeType
.EndElement)
517
if (xmlReader.NodeType !=
XmlNodeType
.EndElement)
518
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.EndElement, xmlReader));
545
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
566
XmlNodeType
nodeType;
567
while ((nodeType = xmlReader.MoveToContent()) !=
XmlNodeType
.EndElement)
569
if (nodeType !=
XmlNodeType
.Element)
570
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
734
case
XmlNodeType
.Text:
736
case
XmlNodeType
.Element:
742
case
XmlNodeType
.EndElement:
751
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
798
XmlNodeType
nodeType;
799
while ((nodeType = xmlReader.MoveToContent()) !=
XmlNodeType
.EndElement)
801
if (nodeType !=
XmlNodeType
.Element)
802
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
818
XmlNodeType
nodeType;
819
while ((nodeType = xmlReader.MoveToContent()) !=
XmlNodeType
.EndElement)
821
if (nodeType !=
XmlNodeType
.Element)
822
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
874
XmlNodeType
nodeType;
875
while ((nodeType = xmlReader.MoveToContent()) !=
XmlNodeType
.EndElement)
877
if (nodeType !=
XmlNodeType
.Element)
878
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
903
if (xmlReader.NodeType ==
XmlNodeType
.EndElement)
909
XmlNodeType
nodeType = xmlReader.MoveToContent();
910
if (nodeType !=
XmlNodeType
.Text)
925
while ((nodeType = xmlReader.MoveToContent()) !=
XmlNodeType
.EndElement)
963
XmlNodeType
nodeType;
964
while ((nodeType = xmlReader.NodeType) !=
XmlNodeType
.EndElement)
966
if (nodeType ==
XmlNodeType
.Element)
1022
bool IsContentNode(
XmlNodeType
nodeType)
1026
case
XmlNodeType
.Whitespace:
1027
case
XmlNodeType
.SignificantWhitespace:
1028
case
XmlNodeType
.Comment:
1029
case
XmlNodeType
.ProcessingInstruction:
1030
case
XmlNodeType
.DocumentType:
1073
public static Exception CreateUnexpectedStateException(
XmlNodeType
expectedState, XmlReaderDelegator xmlReader)
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
172
public
XmlNodeType
NodeType
174
get { return isEndOfEmptyElement ?
XmlNodeType
.EndElement : reader.NodeType; }
196
internal
XmlNodeType
MoveToContent()
200
return
XmlNodeType
.EndElement;
System\Runtime\Serialization\XmlSerializableReader.cs (7)
26
if (xmlReader.NodeType !=
XmlNodeType
.Element)
27
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializerReadContext.CreateUnexpectedStateException(
XmlNodeType
.Element, xmlReader));
45
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializerReadContext.CreateUnexpectedStateException(
XmlNodeType
.EndElement, xmlReader));
55
if (reader.NodeType ==
XmlNodeType
.EndElement ||
56
(reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement))
70
public override
XmlNodeType
NodeType { get { return InnerReader.NodeType; } }
113
public override
XmlNodeType
MoveToContent() { return InnerReader.MoveToContent(); }
System\Runtime\Serialization\XmlSerializableServices.cs (1)
40
while (xmlReader.Depth > startDepth && xmlReader.NodeType !=
XmlNodeType
.EndElement)
System\Xml\ArrayHelper.cs (1)
43
if (read < array.Length || reader.NodeType ==
XmlNodeType
.EndElement)
System\Xml\XmlBaseReader.cs (57)
258
whitespaceTextNode.NodeType =
XmlNodeType
.SignificantWhitespace;
260
whitespaceTextNode.NodeType =
XmlNodeType
.Whitespace;
849
public override
XmlNodeType
MoveToContent()
855
if (node.NodeType !=
XmlNodeType
.Text && node.NodeType !=
XmlNodeType
.CDATA)
876
if (node.NodeType ==
XmlNodeType
.Attribute)
941
public sealed override
XmlNodeType
NodeType
1092
XmlNodeType
nodeType = node.NodeType;
1093
if (nodeType ==
XmlNodeType
.Element)
1095
if (nodeType ==
XmlNodeType
.EndElement)
1097
if (nodeType ==
XmlNodeType
.None)
1100
if (node.NodeType ==
XmlNodeType
.Element)
1103
return (MoveToContent() ==
XmlNodeType
.Element);
1123
return (node.NodeType ==
XmlNodeType
.Element || IsStartElement()) && node.Prefix == prefix && node.LocalName == localName;
1132
return (node.NodeType ==
XmlNodeType
.Element || IsStartElement()) && node.LocalName == localName && node.IsNamespaceUri(namespaceUri);
1141
return (node.NodeType ==
XmlNodeType
.Element || IsStartElement()) && node.LocalName == localName && node.IsNamespaceUri(namespaceUri);
1289
if (node.NodeType !=
XmlNodeType
.Element)
1337
if (node.NodeType !=
XmlNodeType
.Element)
1356
if (node.NodeType !=
XmlNodeType
.EndElement && MoveToContent() !=
XmlNodeType
.EndElement)
1358
int nodeDepth = node.NodeType ==
XmlNodeType
.Element ? this.depth - 1 : this.depth;
1467
while (node.NodeType !=
XmlNodeType
.Comment && node.Value.TryReadBase64(buffer, offset, count, out actual))
1475
XmlNodeType
nodeType = node.NodeType;
1476
if (nodeType ==
XmlNodeType
.Element || nodeType ==
XmlNodeType
.EndElement)
1539
XmlNodeType
nodeType = node.NodeType;
1540
if (nodeType ==
XmlNodeType
.Element || nodeType ==
XmlNodeType
.EndElement)
1840
if ((node.NodeType ==
XmlNodeType
.Element || MoveToElement()) && !IsEmptyElement)
1848
if (node.NodeType ==
XmlNodeType
.EndElement)
2077
case
XmlNodeType
.None:
2079
case
XmlNodeType
.Element:
2085
case
XmlNodeType
.Text:
2086
case
XmlNodeType
.Whitespace:
2087
case
XmlNodeType
.SignificantWhitespace:
2088
case
XmlNodeType
.CDATA:
2091
case
XmlNodeType
.XmlDeclaration:
2094
case
XmlNodeType
.Comment:
2097
case
XmlNodeType
.EndElement:
2162
XmlNodeType
nodeType;
2192
protected XmlNode(
XmlNodeType
nodeType,
2214
this.exitScope = (nodeType ==
XmlNodeType
.EndElement);
2240
public
XmlNodeType
NodeType
2487
: base(
XmlNodeType
.Element,
2531
: base(
XmlNodeType
.Attribute,
2546
: base(
XmlNodeType
.EndElement,
2560
protected XmlTextNode(
XmlNodeType
nodeType,
2577
: base(
XmlNodeType
.Text,
2592
: base(
XmlNodeType
.Text,
2607
: base(
XmlNodeType
.Whitespace,
2622
: base(
XmlNodeType
.CDATA,
2637
: base(
XmlNodeType
.Text,
2652
: base(
XmlNodeType
.None,
2667
: base(
XmlNodeType
.XmlDeclaration,
2682
: base(
XmlNodeType
.Comment,
2697
: base(
XmlNodeType
.None,
2712
: base(
XmlNodeType
.None,
System\Xml\XmlBinaryReader.cs (12)
105
if (this.Node.NodeType !=
XmlNodeType
.Element)
133
if (this.Node.NodeType !=
XmlNodeType
.Element)
164
if (this.Node.NodeType !=
XmlNodeType
.Element)
210
if (this.Node.NodeType !=
XmlNodeType
.Element)
224
if (this.Node.NodeType !=
XmlNodeType
.Element)
238
if (this.Node.NodeType !=
XmlNodeType
.Element)
252
if (this.Node.NodeType !=
XmlNodeType
.Element)
266
if (this.Node.NodeType !=
XmlNodeType
.Element)
280
if (this.Node.NodeType !=
XmlNodeType
.Element)
294
if (this.Node.NodeType !=
XmlNodeType
.Element)
1133
if (this.Node.NodeType !=
XmlNodeType
.Element)
1138
if (this.Node.NodeType !=
XmlNodeType
.EndElement)
System\Xml\XmlDictionaryReader.cs (25)
424
case
XmlNodeType
.Attribute:
427
case
XmlNodeType
.Text:
428
case
XmlNodeType
.Whitespace:
429
case
XmlNodeType
.SignificantWhitespace:
430
case
XmlNodeType
.CDATA:
446
case
XmlNodeType
.ProcessingInstruction:
447
case
XmlNodeType
.Comment:
448
case
XmlNodeType
.EndEntity:
451
case
XmlNodeType
.EntityReference:
458
case
XmlNodeType
.Element:
459
case
XmlNodeType
.EndElement:
487
if (this.NodeType !=
XmlNodeType
.Element)
489
if (this.NodeType ==
XmlNodeType
.Element)
495
if (this.NodeType ==
XmlNodeType
.EndElement)
577
protected bool IsTextNode(
XmlNodeType
nodeType)
579
return nodeType ==
XmlNodeType
.Text ||
580
nodeType ==
XmlNodeType
.Whitespace ||
581
nodeType ==
XmlNodeType
.SignificantWhitespace ||
582
nodeType ==
XmlNodeType
.CDATA ||
583
nodeType ==
XmlNodeType
.Attribute;
591
XmlNodeType
nodeType = this.NodeType;
593
if (nodeType ==
XmlNodeType
.Element || nodeType ==
XmlNodeType
.EndElement)
603
if (nodeType ==
XmlNodeType
.Attribute /* || inAttributeText */)
1521
public override
XmlNodeType
NodeType
System\Xml\XmlDictionaryWriter.cs (15)
773
if (reader.NodeType ==
XmlNodeType
.EntityReference)
892
int d = (reader.NodeType ==
XmlNodeType
.None ? -1 : reader.Depth);
895
XmlNodeType
nodeType = reader.NodeType;
897
if (nodeType ==
XmlNodeType
.Text || nodeType ==
XmlNodeType
.Whitespace || nodeType ==
XmlNodeType
.SignificantWhitespace)
911
case
XmlNodeType
.Element:
914
case
XmlNodeType
.CDATA:
917
case
XmlNodeType
.EntityReference:
920
case
XmlNodeType
.XmlDeclaration:
921
case
XmlNodeType
.ProcessingInstruction:
924
case
XmlNodeType
.DocumentType:
927
case
XmlNodeType
.Comment:
930
case
XmlNodeType
.EndElement:
938
while (d < reader.Depth || (d == reader.Depth && reader.NodeType ==
XmlNodeType
.EndElement));
System\Xml\XmlExceptionHelper.cs (7)
70
case
XmlNodeType
.Element:
72
case
XmlNodeType
.EndElement:
74
case
XmlNodeType
.Text:
75
case
XmlNodeType
.Whitespace:
76
case
XmlNodeType
.SignificantWhitespace:
78
case
XmlNodeType
.Comment:
80
case
XmlNodeType
.CDATA:
System\Xml\XmlMtomReader.cs (9)
282
if (xmlReader.NodeType ==
XmlNodeType
.Element)
440
if (NodeType !=
XmlNodeType
.Attribute)
692
public override
XmlNodeType
NodeType
1083
XmlNodeType
nodeType;
1100
this.nodeType =
XmlNodeType
.None;
1114
public override
XmlNodeType
NodeType
1129
nodeType =
XmlNodeType
.Text;
1135
nodeType =
XmlNodeType
.EndElement;
1143
nodeType =
XmlNodeType
.None;
System.ServiceModel (128)
System\ServiceModel\Channels\AddressHeader.cs (2)
327
Fx.Assert(reader.NodeType ==
XmlNodeType
.Element, "");
373
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1733
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\BodyWriter.cs (1)
145
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\ContextMessageHeader.cs (2)
125
while (reader.MoveToContent() ==
XmlNodeType
.Element)
143
if (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\Message.cs (14)
610
if (reader.NodeType !=
XmlNodeType
.Element)
612
if (reader.NodeType ==
XmlNodeType
.Element)
617
else if (reader.NodeType ==
XmlNodeType
.EndElement)
931
if (reader.MoveToContent() !=
XmlNodeType
.Element)
954
XmlNodeType
type = reader.MoveToContent();
955
while (!reader.EOF && type !=
XmlNodeType
.EndElement)
957
if (type !=
XmlNodeType
.Element)
1245
while (bodyReader.NodeType !=
XmlNodeType
.EndElement && !bodyReader.EOF)
1299
if (reader.NodeType !=
XmlNodeType
.Element)
1333
if (reader.NodeType !=
XmlNodeType
.Element)
1622
if (reader.NodeType !=
XmlNodeType
.Element)
1633
if (reader.NodeType !=
XmlNodeType
.Element)
1640
if (reader.NodeType !=
XmlNodeType
.Element)
1664
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\MessageFault.cs (4)
180
if (reader.NodeType !=
XmlNodeType
.EndElement && !reader.EOF)
550
hasDetail = (reader.MoveToContent() !=
XmlNodeType
.EndElement);
576
while (r.NodeType !=
XmlNodeType
.EndElement)
607
while (r.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\MessageHeader.cs (1)
457
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\MessageHeaders.cs (8)
417
if (reader.NodeType !=
XmlNodeType
.Element)
419
if (reader.MoveToContent() !=
XmlNodeType
.Element)
774
if (reader.NodeType ==
XmlNodeType
.Element)
778
if (reader.NodeType ==
XmlNodeType
.Element)
797
if (reader.NodeType !=
XmlNodeType
.Element)
810
if (reader.MoveToContent() ==
XmlNodeType
.Element && !reader.IsEmptyElement)
820
if (reader.NodeType ==
XmlNodeType
.EndElement)
1673
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Channels\OneWayBindingElementImporter.cs (1)
41
&& currentNode.NodeType ==
XmlNodeType
.Element
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (6)
106
&& (node.NodeType ==
XmlNodeType
.Element)
313
static bool ShouldSkipNodeType(
XmlNodeType
type)
315
return (type ==
XmlNodeType
.Comment || type ==
XmlNodeType
.SignificantWhitespace || type ==
XmlNodeType
.Whitespace || type ==
XmlNodeType
.Notation);
System\ServiceModel\Channels\WsrmFault.cs (2)
732
if ((headerReader.NodeType !=
XmlNodeType
.Element)
757
if ((headerReader.NodeType ==
XmlNodeType
.Element)
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (2)
49
if ((reader.MoveToContent() ==
XmlNodeType
.Element) && (reader.Name == "wsdl:definitions"))
840
if ((reader.MoveToContent() ==
XmlNodeType
.Element) && (reader.Name == "xs:schema"))
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (2)
454
if (
XmlNodeType
.Element != reader.NodeType)
464
if (
XmlNodeType
.Element == subTree.NodeType)
System\ServiceModel\Description\MetadataSet.cs (15)
437
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element)
493
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None)
495
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element)
564
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None)
566
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element)
576
if (this.Reader.NodeType ==
XmlNodeType
.EndElement)
647
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None)
650
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element)
654
else if (Reader.NodeType == System.Xml.
XmlNodeType
.Text ||
655
Reader.NodeType == System.Xml.
XmlNodeType
.CDATA ||
656
Reader.NodeType == System.Xml.
XmlNodeType
.Whitespace ||
657
Reader.NodeType == System.Xml.
XmlNodeType
.SignificantWhitespace)
System\ServiceModel\Description\PolicyReader.cs (2)
143
if (child.NodeType ==
XmlNodeType
.Element)
166
if (child.NodeType ==
XmlNodeType
.Element)
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (6)
57
XmlNodeType
type = reader.MoveToContent();
60
case
XmlNodeType
.Element:
126
case
XmlNodeType
.EndElement:
133
case
XmlNodeType
.CDATA:
142
case
XmlNodeType
.SignificantWhitespace:
143
case
XmlNodeType
.Text:
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
146
if (detailReader.NodeType !=
XmlNodeType
.EndElement && !detailReader.EOF)
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (14)
1938
case
XmlNodeType
.Element:
1964
case
XmlNodeType
.Comment:
1973
case
XmlNodeType
.ProcessingInstruction:
1983
case
XmlNodeType
.SignificantWhitespace:
2007
goto case
XmlNodeType
.Whitespace;
2011
case
XmlNodeType
.Whitespace:
2035
case
XmlNodeType
.CDATA:
2036
case
XmlNodeType
.Text:
2056
case
XmlNodeType
.EntityReference:
2066
case
XmlNodeType
.EndEntity:
2067
case
XmlNodeType
.EndElement:
2068
case
XmlNodeType
.None:
2071
case
XmlNodeType
.DocumentType:
2074
case
XmlNodeType
.XmlDeclaration:
System\ServiceModel\Dispatcher\StreamFormatter.cs (2)
262
if (reader.NodeType ==
XmlNodeType
.EndElement)
269
if (reader.MoveToContent() !=
XmlNodeType
.Text)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
379
if (reader.NodeType ==
XmlNodeType
.EndElement)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
457
if (reader.NodeType ==
XmlNodeType
.Attribute)
524
if (reader.NodeType ==
XmlNodeType
.Attribute)
System\ServiceModel\EndpointAddress.cs (4)
561
else if (reader.NodeType !=
XmlNodeType
.Element)
599
else if (reader.NodeType !=
XmlNodeType
.Element)
934
while (reader.NodeType !=
XmlNodeType
.EndElement && !reader.EOF)
989
return (reader.NodeType ==
XmlNodeType
.EndElement || reader.EOF);
System\ServiceModel\EndpointIdentity.cs (1)
230
else if (reader.NodeType ==
XmlNodeType
.Element)
System\ServiceModel\Security\SecurityAppliedMessage.cs (1)
145
while (reader.NodeType !=
XmlNodeType
.EndElement)
System\ServiceModel\Security\SecurityVerifiedMessage.cs (6)
219
if (reader.NodeType !=
XmlNodeType
.Element)
228
if (reader.NodeType !=
XmlNodeType
.Element)
236
if (reader.NodeType !=
XmlNodeType
.Element)
259
if (reader.NodeType !=
XmlNodeType
.Element)
424
while (reader.NodeType !=
XmlNodeType
.EndElement)
506
if (reader.NodeType !=
XmlNodeType
.Element)
System\ServiceModel\Security\WSSecureConversation.cs (1)
429
Fx.Assert(reader.NodeType ==
XmlNodeType
.Element, "");
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (3)
74
if (!bodyContentReader.EOF && bodyContentReader.NodeType !=
XmlNodeType
.EndElement)
204
if (reader.NodeType !=
XmlNodeType
.Element)
308
if (reader.NodeType !=
XmlNodeType
.Element)
System\ServiceModel\Security\WSSecurityPolicy.cs (3)
319
if (node.NodeType ==
XmlNodeType
.Whitespace || node.NodeType ==
XmlNodeType
.Comment)
2334
while (metadataReader.MoveToContent() ==
XmlNodeType
.Element)
System\ServiceModel\Security\XmlHelper.cs (13)
60
if (child.NodeType ==
XmlNodeType
.Whitespace || child.NodeType ==
XmlNodeType
.Comment)
64
else if (child.NodeType ==
XmlNodeType
.Element && result == null)
76
OnChildNodeTypeMissing(parent,
XmlNodeType
.Element);
93
if (child.NodeType ==
XmlNodeType
.Whitespace || child.NodeType ==
XmlNodeType
.Comment)
97
else if (child.NodeType ==
XmlNodeType
.Element)
130
while (reader.NodeType ==
XmlNodeType
.Whitespace || reader.NodeType ==
XmlNodeType
.SignificantWhitespace)
156
if (reader.NodeType ==
XmlNodeType
.Comment)
160
else if (reader.NodeType ==
XmlNodeType
.Whitespace)
170
internal static void OnChildNodeTypeMissing(string parentName,
XmlNodeType
expectedNodeType)
175
internal static void OnChildNodeTypeMissing(XmlElement parent,
XmlNodeType
expectedNodeType)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (7)
585
case
XmlNodeType
.Element:
587
case
XmlNodeType
.EndElement:
589
case
XmlNodeType
.Text:
590
case
XmlNodeType
.Whitespace:
591
case
XmlNodeType
.SignificantWhitespace:
593
case
XmlNodeType
.Comment:
595
case
XmlNodeType
.CDATA:
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\XmlByteStreamReader.cs (5)
116
public override
XmlNodeType
NodeType
123
return
XmlNodeType
.Element;
125
return
XmlNodeType
.Text;
127
return
XmlNodeType
.EndElement;
130
return
XmlNodeType
.None;
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\EndpointDiscoveryMetadata.cs (1)
394
if ((reader.NodeType ==
XmlNodeType
.EndElement) && (reader.Depth == startDepth))
System\ServiceModel\Discovery\FindCriteria.cs (1)
333
if ((reader.NodeType ==
XmlNodeType
.EndElement) && (reader.Depth == startDepth))
System\ServiceModel\Discovery\ResolveCriteria.cs (1)
116
if ((reader.NodeType ==
XmlNodeType
.EndElement) && (reader.Depth == startDepth))
System.Web (30)
Compilation\PreservationFileReader.cs (2)
179
if (dependenciesNode.NodeType !=
XmlNodeType
.Element)
206
if (dependencyNode.NodeType !=
XmlNodeType
.Element)
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
468
if (node.NodeType !=
XmlNodeType
.Element)
579
if (node.NodeType !=
XmlNodeType
.Element) {
Configuration\BrowserDefinition.cs (5)
189
if(child.NodeType !=
XmlNodeType
.Element) {
385
if(child.NodeType !=
XmlNodeType
.Element) {
469
if(child.NodeType !=
XmlNodeType
.Element) {
507
if(child.NodeType !=
XmlNodeType
.Element) {
531
if(child.NodeType !=
XmlNodeType
.Element) {
Configuration\HandlerBase.cs (1)
226
if (childNode.NodeType !=
XmlNodeType
.Comment) {
Configuration\HttpCapabilitiesSectionHandler.cs (5)
177
case
XmlNodeType
.Text:
178
case
XmlNodeType
.CDATA:
183
case
XmlNodeType
.Element:
212
case
XmlNodeType
.Comment:
213
case
XmlNodeType
.Whitespace:
Configuration\ProtocolsConfiguration.cs (3)
80
if (node.NodeType ==
XmlNodeType
.Comment || node.NodeType ==
XmlNodeType
.Whitespace) {
84
if (node.NodeType !=
XmlNodeType
.Element)
UI\WebControls\AdRotator.cs (4)
544
if (reader.NodeType ==
XmlNodeType
.Element && reader.Name == "Ad" && reader.Depth == 1) {
548
while (!(reader.NodeType ==
XmlNodeType
.EndElement)) {
549
if (reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement) {
609
if (prop.NodeType ==
XmlNodeType
.Element) {
UI\WebControls\XmlDataSourceView.cs (2)
74
if (node.NodeType ==
XmlNodeType
.Element) {
86
if (node.NodeType ==
XmlNodeType
.Element) {
UI\WebControls\XmlHierarchicalEnumerable.cs (1)
47
if (node.NodeType ==
XmlNodeType
.Element) {
UI\WebControls\XmlHierarchyData.cs (1)
61
if (nodeList[i].NodeType ==
XmlNodeType
.Element)
UI\WebParts\ImportCatalogPart.cs (1)
254
while (!reader.EOF && !(reader.NodeType ==
XmlNodeType
.Element &&
UI\WebParts\WebPartManager.cs (1)
3140
((reader.Name == ExportIPersonalizableElement) && (reader.NodeType ==
XmlNodeType
.EndElement))) {
XmlSiteMapProvider.cs (2)
299
if (subNode.NodeType ==
XmlNodeType
.Element) {
809
if (subNode.NodeType !=
XmlNodeType
.Element)
System.Web.Extensions (87)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (28)
206
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
257
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
258
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
272
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
273
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
307
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
308
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
342
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
343
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
377
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
378
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
451
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
452
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
501
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
502
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
574
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
575
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
641
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
642
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
Compilation\XmlSerializer\SvcMapFileSerializer.cs (58)
393
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
443
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
444
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
464
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
465
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
499
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
500
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
534
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
535
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
608
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
609
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
681
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
682
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
748
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
749
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
796
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
797
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
827
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
828
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
875
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
876
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
905
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
906
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
965
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
966
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
995
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
996
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1025
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1026
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1098
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1099
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1144
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1145
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1190
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1191
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1249
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1250
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
1308
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
1309
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
Script\Services\WebServiceTypeData.cs (1)
188
if (child.NodeType ==
XmlNodeType
.Element) {
System.Web.Mobile (3)
Mobile\ConfigurationSectionHelper.cs (3)
147
return _currentNode.NodeType ==
XmlNodeType
.Comment ||
148
_currentNode.NodeType ==
XmlNodeType
.Whitespace;
156
if(_currentNode.NodeType !=
XmlNodeType
.Element)
System.Web.Services (312)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (273)
4117
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4183
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4184
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4267
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4268
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4338
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4339
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4404
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4405
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4454
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4455
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4504
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4505
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4566
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4567
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4643
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4644
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4727
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4728
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4802
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4803
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4872
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4873
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
4937
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
4938
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5034
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5035
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5106
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5107
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5168
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5169
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5234
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5235
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5306
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5307
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5368
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5369
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5415
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5416
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5491
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5492
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5543
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5544
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5595
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5596
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5662
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5663
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5716
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5717
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5773
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5774
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5856
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5857
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5902
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5903
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
5960
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
5961
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6022
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6023
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6080
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6081
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6134
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6135
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6188
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6189
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6238
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6239
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6296
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6297
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6369
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6370
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6446
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6447
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6514
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6515
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6582
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6583
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6647
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6648
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6722
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6723
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6783
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6784
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6876
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6877
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
6974
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
6975
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7056
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7057
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7121
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7122
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7184
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7185
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7188
else if (Reader.NodeType == System.Xml.
XmlNodeType
.Text ||
7189
Reader.NodeType == System.Xml.
XmlNodeType
.CDATA ||
7190
Reader.NodeType == System.Xml.
XmlNodeType
.Whitespace ||
7191
Reader.NodeType == System.Xml.
XmlNodeType
.SignificantWhitespace) {
7249
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7250
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7253
else if (Reader.NodeType == System.Xml.
XmlNodeType
.Text ||
7254
Reader.NodeType == System.Xml.
XmlNodeType
.CDATA ||
7255
Reader.NodeType == System.Xml.
XmlNodeType
.Whitespace ||
7256
Reader.NodeType == System.Xml.
XmlNodeType
.SignificantWhitespace) {
7326
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7327
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7418
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7419
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7494
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7495
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7582
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7583
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7655
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7656
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7767
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7768
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7839
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7840
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7911
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7912
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
7983
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
7984
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8055
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8056
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8127
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8128
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8199
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8200
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8271
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8272
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8343
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8344
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8415
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8416
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8487
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8488
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8559
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8560
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8627
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8628
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8788
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8789
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8878
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8879
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
8953
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
8954
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9022
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9023
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9098
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9099
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9190
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9191
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9297
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9298
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9373
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9374
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9464
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9465
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9537
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9538
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9632
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9633
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9696
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9697
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9773
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9774
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9853
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9854
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
9971
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
9972
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10048
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10049
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10143
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10144
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10237
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10238
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10325
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10326
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10394
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10395
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10477
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10478
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10545
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10546
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
10613
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
10614
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
System\Web\Services\Description\WebReferenceOptions.cs (7)
304
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
305
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
326
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
327
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
385
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (2)
189
while (newReader.NodeType !=
XmlNodeType
.Element) {
190
if (newReader.NodeType ==
XmlNodeType
.ProcessingInstruction) {
System\Web\Services\Discovery\DiscoveryDocumentSerializer.cs (16)
148
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
191
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
192
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
255
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
256
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
305
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
306
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
355
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
356
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
401
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement && Reader.NodeType != System.Xml.
XmlNodeType
.None) {
402
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
System\Web\Services\Protocols\SoapClientProtocol.cs (11)
696
if (reader.NodeType ==
XmlNodeType
.EndElement) {
724
while (reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.None) {
743
while (reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.None) {
752
while (reader.NodeType ==
XmlNodeType
.Whitespace) reader.Skip();
753
if (reader.NodeType ==
XmlNodeType
.None) reader.Skip();
780
if (reader.NodeType ==
XmlNodeType
.EndElement) {
813
while (reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.None) {
835
if (reader.NodeType ==
XmlNodeType
.EndElement) {
System\Web\Services\Protocols\SoapHeader.cs (1)
284
if (reader.NodeType ==
XmlNodeType
.EndElement) {
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
644
if (reader.NodeType ==
XmlNodeType
.EndElement) {
894
public override
XmlNodeType
MoveToContent() {
System.Windows.Forms (11)
winforms\Managed\System\Resources\ResXResourceReader.cs (11)
385
if (reader.NodeType ==
XmlNodeType
.Element) {
490
if (reader.NodeType ==
XmlNodeType
.Element) {
498
if (reader.NodeType ==
XmlNodeType
.Element) {
506
if (reader.NodeType ==
XmlNodeType
.Element) {
514
if (reader.NodeType ==
XmlNodeType
.Element) {
524
if (reader.NodeType ==
XmlNodeType
.Element) {
532
if (reader.NodeType ==
XmlNodeType
.Element) {
540
if (reader.NodeType ==
XmlNodeType
.Element) {
548
if (reader.NodeType ==
XmlNodeType
.Element) {
609
if(reader.NodeType ==
XmlNodeType
.EndElement && ( reader.LocalName.Equals(ResXResourceWriter.DataStr) || reader.LocalName.Equals(ResXResourceWriter.MetadataStr) )) {
614
if (reader.NodeType ==
XmlNodeType
.Element) {
System.Workflow.ComponentModel (42)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
1147
if (reader.MoveToContent() == System.Xml.
XmlNodeType
.Element)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
269
if (reader != null && reader.NodeType ==
XmlNodeType
.Element)
AuthoringOM\Design\ComponentSerializationService.cs (3)
196
XmlTextReader reader = new XmlTextReader(this.serializedXmlString,
XmlNodeType
.Element, null) { DtdProcessing = DtdProcessing.Prohibit };
240
while (reader.NodeType !=
XmlNodeType
.Element && reader.NodeType !=
XmlNodeType
.ProcessingInstruction && reader.Read());
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (31)
132
while (xmlReader.Read() && xmlReader.NodeType !=
XmlNodeType
.Element && xmlReader.NodeType !=
XmlNodeType
.ProcessingInstruction);
218
if (reader.NodeType !=
XmlNodeType
.Element)
275
if (reader.NodeType !=
XmlNodeType
.Element)
446
if (reader.NodeType !=
XmlNodeType
.Comment && reader.NodeType !=
XmlNodeType
.Whitespace && !unnecessaryXmlFound)
456
if (reader.NodeType ==
XmlNodeType
.Element)
513
else if (reader.NodeType ==
XmlNodeType
.Text && contentProperty.Property != null)
524
if (reader.NodeType ==
XmlNodeType
.Entity ||
525
reader.NodeType ==
XmlNodeType
.Text ||
526
reader.NodeType ==
XmlNodeType
.CDATA)
557
using (new SafeXmlNodeWriter(serializationManager, obj, null,
XmlNodeType
.Element))
904
using (new SafeXmlNodeWriter(serializationManager, obj, propertyObj,
XmlNodeType
.Attribute))
999
using (new SafeXmlNodeWriter(serializationManager, obj, propertyObj,
XmlNodeType
.Element))
1654
while (reader.NodeType !=
XmlNodeType
.EndElement && reader.NodeType !=
XmlNodeType
.Element && reader.NodeType !=
XmlNodeType
.Text && reader.Read());
1852
} while (reader.NodeType !=
XmlNodeType
.Text && reader.NodeType !=
XmlNodeType
.Element && reader.NodeType !=
XmlNodeType
.ProcessingInstruction && reader.NodeType !=
XmlNodeType
.EndElement);
1854
if (reader.NodeType ==
XmlNodeType
.Text)
1861
if (reader.NodeType ==
XmlNodeType
.Element)
2333
private
XmlNodeType
xmlNodeType =
XmlNodeType
.None;
2336
public SafeXmlNodeWriter(WorkflowMarkupSerializationManager serializationManager, object owner, object property,
XmlNodeType
xmlNodeType)
2350
if (!dependencyProperty.IsAttached && xmlNodeType ==
XmlNodeType
.Attribute)
2371
else if (this.xmlNodeType ==
XmlNodeType
.Element)
2394
if (this.xmlNodeType ==
XmlNodeType
.Element)
2399
else if (this.xmlNodeType ==
XmlNodeType
.Attribute)
2411
if (this.xmlNodeType ==
XmlNodeType
.Element)
Shared\XomlSerializationHelpers.cs (6)
111
if (reader.NodeType ==
XmlNodeType
.Attribute)
130
XmlNodeType
currNodeType = reader.NodeType;
133
case
XmlNodeType
.Element:
160
case
XmlNodeType
.EndElement:
168
case
XmlNodeType
.CDATA:
169
case
XmlNodeType
.Text:
System.Workflow.Runtime (28)
Tracking\TrackingProfileSerializer.cs (28)
161
case
XmlNodeType
.Element:
169
case
XmlNodeType
.EndElement:
200
case
XmlNodeType
.Element:
213
case
XmlNodeType
.EndElement:
245
case
XmlNodeType
.Element:
275
case
XmlNodeType
.EndElement:
316
case
XmlNodeType
.Element:
329
case
XmlNodeType
.EndElement:
364
case
XmlNodeType
.Element:
380
case
XmlNodeType
.EndElement:
472
case
XmlNodeType
.Element:
480
case
XmlNodeType
.EndElement:
512
case
XmlNodeType
.Element:
530
case
XmlNodeType
.EndElement:
559
case
XmlNodeType
.Element:
570
case
XmlNodeType
.EndElement:
599
case
XmlNodeType
.Element:
626
case
XmlNodeType
.EndElement:
655
case
XmlNodeType
.Element:
672
case
XmlNodeType
.EndElement:
698
case
XmlNodeType
.Element:
707
case
XmlNodeType
.EndElement:
736
case
XmlNodeType
.Element:
748
case
XmlNodeType
.EndElement:
776
case
XmlNodeType
.Element:
784
case
XmlNodeType
.EndElement:
812
case
XmlNodeType
.Element:
820
case
XmlNodeType
.EndElement:
System.Xml (1664)
System\Xml\BinaryXml\XmlBinaryReader.cs (64)
264
XmlNodeType
nodetype;
272
XmlNodeType
parentNodeType; // use for MoveToElement()
330
this.nodetype =
XmlNodeType
.None;
413
public override
XmlNodeType
NodeType {
453
case
XmlNodeType
.DocumentType:
454
case
XmlNodeType
.ProcessingInstruction:
455
case
XmlNodeType
.Comment:
458
case
XmlNodeType
.CDATA:
461
case
XmlNodeType
.XmlDeclaration:
464
case
XmlNodeType
.Text:
465
case
XmlNodeType
.Whitespace:
466
case
XmlNodeType
.SignificantWhitespace:
490
if (this.nodetype ==
XmlNodeType
.Element
491
|| this.nodetype ==
XmlNodeType
.EndElement)
500
if (this.parentNodeType !=
XmlNodeType
.Element)
505
if (this.parentNodeType !=
XmlNodeType
.Element)
715
if (
XmlNodeType
.Element == this.parentNodeType)
717
else if (
XmlNodeType
.XmlDeclaration == this.parentNodeType)
719
else if (
XmlNodeType
.DocumentType == this.parentNodeType)
764
this.nodetype =
XmlNodeType
.Text;
780
this.nodetype =
XmlNodeType
.None;
834
this.nodetype =
XmlNodeType
.None;
875
if (this.NodeType ==
XmlNodeType
.EndElement)
877
if (this.NodeType ==
XmlNodeType
.ProcessingInstruction || this.NodeType ==
XmlNodeType
.Comment) {
878
while (Read() && (this.NodeType ==
XmlNodeType
.ProcessingInstruction || this.NodeType ==
XmlNodeType
.Comment))
880
if (this.NodeType ==
XmlNodeType
.EndElement)
906
if (this.NodeType !=
XmlNodeType
.Element && this.NodeType !=
XmlNodeType
.EndElement) {
911
case
XmlNodeType
.ProcessingInstruction:
912
case
XmlNodeType
.Comment:
915
case
XmlNodeType
.Element:
916
case
XmlNodeType
.EndElement:
1533
if (this.NodeType ==
XmlNodeType
.Element || this.NodeType ==
XmlNodeType
.EndElement)
1564
if (this.NodeType ==
XmlNodeType
.Element || this.NodeType ==
XmlNodeType
.EndElement) {
2117
this.nodetype =
XmlNodeType
.Attribute;
2261
this.nodetype =
XmlNodeType
.XmlDeclaration;
2463
case
XmlNodeType
.CDATA:
2466
case
XmlNodeType
.EndElement:
2469
case
XmlNodeType
.Element:
2479
this.nodetype =
XmlNodeType
.None;
2591
if (
XmlNodeType
.Text == this.nodetype)
2733
this.nodetype =
XmlNodeType
.Element;
2746
this.nodetype =
XmlNodeType
.EndElement;
2780
this.nodetype =
XmlNodeType
.DocumentType;
2788
this.nodetype =
XmlNodeType
.ProcessingInstruction;
2792
this.nodetype =
XmlNodeType
.Comment;
2799
this.nodetype =
XmlNodeType
.CDATA;
2845
|| ((this.textXmlReader.NodeType ==
XmlNodeType
.XmlDeclaration)
2950
XmlNodeType
ScanOverValue(BinXmlToken token, bool attr, bool checkChars) {
2968
return
XmlNodeType
.Text;
2976
XmlNodeType
ScanOverAnyValue(BinXmlToken token, bool attr, bool checkChars) {
3087
return
XmlNodeType
.Text;
3090
unsafe
XmlNodeType
CheckText(bool attr) {
3106
return this.xmlspacePreserve ?
XmlNodeType
.SignificantWhitespace :
XmlNodeType
.Whitespace;
3118
return
XmlNodeType
.Text;
3142
XmlNodeType
CheckTextIsWS() {
3161
return
XmlNodeType
.SignificantWhitespace;
3162
return
XmlNodeType
.Whitespace;
3164
return
XmlNodeType
.Text;
System\Xml\BinaryXml\XmlBinaryReaderAsync.cs (1)
38
public override Task<
XmlNodeType
> MoveToContentAsync() {
System\Xml\Core\ReadContentAsBinaryHelper.cs (15)
173
if ( reader.NodeType !=
XmlNodeType
.Element ) {
220
if ( reader.NodeType !=
XmlNodeType
.Element ) {
255
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
284
Debug.Assert( reader.NodeType ==
XmlNodeType
.Element );
295
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
386
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
399
case
XmlNodeType
.Attribute:
401
case
XmlNodeType
.Text:
402
case
XmlNodeType
.Whitespace:
403
case
XmlNodeType
.SignificantWhitespace:
404
case
XmlNodeType
.CDATA:
409
case
XmlNodeType
.ProcessingInstruction:
410
case
XmlNodeType
.Comment:
411
case
XmlNodeType
.EndEntity:
414
case
XmlNodeType
.EntityReference:
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (15)
123
if ( reader.NodeType !=
XmlNodeType
.Element ) {
170
if ( reader.NodeType !=
XmlNodeType
.Element ) {
205
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
228
Debug.Assert( reader.NodeType ==
XmlNodeType
.Element );
239
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
310
if ( reader.NodeType !=
XmlNodeType
.EndElement ) {
323
case
XmlNodeType
.Attribute:
325
case
XmlNodeType
.Text:
326
case
XmlNodeType
.Whitespace:
327
case
XmlNodeType
.SignificantWhitespace:
328
case
XmlNodeType
.CDATA:
333
case
XmlNodeType
.ProcessingInstruction:
334
case
XmlNodeType
.Comment:
335
case
XmlNodeType
.EndEntity:
338
case
XmlNodeType
.EntityReference:
System\Xml\Core\ValidatingReaderNodeData.cs (5)
28
XmlNodeType
nodeType;
34
Clear(
XmlNodeType
.None);
37
public ValidatingReaderNodeData(
XmlNodeType
nodeType) {
107
public
XmlNodeType
NodeType {
137
internal void Clear(
XmlNodeType
nodeType ) {
System\Xml\Core\XmlAsyncCheckReader.cs (3)
75
public override
XmlNodeType
NodeType {
523
public override
XmlNodeType
MoveToContent() {
758
public override Task<
XmlNodeType
> MoveToContentAsync() {
System\Xml\Core\XmlCharCheckingReader.cs (17)
46
XmlNodeType
lastNodeType;
67
lastNodeType =
XmlNodeType
.None;
177
XmlNodeType
nodeType = base.reader.NodeType;
181
case
XmlNodeType
.Comment:
186
case
XmlNodeType
.Whitespace:
191
case
XmlNodeType
.ProcessingInstruction:
196
case
XmlNodeType
.DocumentType:
209
case
XmlNodeType
.Element:
226
case
XmlNodeType
.Text:
227
case
XmlNodeType
.CDATA:
233
case
XmlNodeType
.EntityReference:
240
case
XmlNodeType
.ProcessingInstruction:
250
case
XmlNodeType
.Comment:
259
case
XmlNodeType
.DocumentType:
286
case
XmlNodeType
.Whitespace:
295
case
XmlNodeType
.SignificantWhitespace:
301
case
XmlNodeType
.EndElement:
System\Xml\Core\XmlCharCheckingReaderAsync.cs (15)
45
XmlNodeType
nodeType = base.reader.NodeType;
49
case
XmlNodeType
.Comment:
54
case
XmlNodeType
.Whitespace:
59
case
XmlNodeType
.ProcessingInstruction:
64
case
XmlNodeType
.DocumentType:
77
case
XmlNodeType
.Element:
94
case
XmlNodeType
.Text:
95
case
XmlNodeType
.CDATA:
101
case
XmlNodeType
.EntityReference:
108
case
XmlNodeType
.ProcessingInstruction:
118
case
XmlNodeType
.Comment:
127
case
XmlNodeType
.DocumentType:
154
case
XmlNodeType
.Whitespace:
163
case
XmlNodeType
.SignificantWhitespace:
169
case
XmlNodeType
.EndElement:
System\Xml\Core\XmlReader.cs (99)
111
public abstract
XmlNodeType
NodeType { get; }
689
if (this.NodeType ==
XmlNodeType
.Element) {
696
if (this.NodeType ==
XmlNodeType
.EndElement) {
714
public virtual
XmlNodeType
MoveToContent() {
717
case
XmlNodeType
.Attribute:
719
goto case
XmlNodeType
.Element;
720
case
XmlNodeType
.Element:
721
case
XmlNodeType
.EndElement:
722
case
XmlNodeType
.CDATA:
723
case
XmlNodeType
.Text:
724
case
XmlNodeType
.EntityReference:
725
case
XmlNodeType
.EndEntity:
734
if (MoveToContent() !=
XmlNodeType
.Element) {
742
if (MoveToContent() !=
XmlNodeType
.Element) {
756
if (MoveToContent() !=
XmlNodeType
.Element) {
773
if (MoveToContent() !=
XmlNodeType
.Element) {
779
if (this.NodeType !=
XmlNodeType
.EndElement) {
795
if (MoveToContent() !=
XmlNodeType
.Element) {
805
if (this.NodeType !=
XmlNodeType
.EndElement) {
821
if (MoveToContent() !=
XmlNodeType
.Element) {
831
if (this.NodeType !=
XmlNodeType
.EndElement) {
845
if (MoveToContent() !=
XmlNodeType
.EndElement) {
853
return MoveToContent() ==
XmlNodeType
.Element;
859
return (MoveToContent() ==
XmlNodeType
.Element) &&
866
return (MoveToContent() ==
XmlNodeType
.Element) &&
880
if (NodeType ==
XmlNodeType
.Element && Ref.Equal(name, Name)) {
902
if (NodeType ==
XmlNodeType
.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) {
916
if (NodeType !=
XmlNodeType
.Element) {
935
if (NodeType ==
XmlNodeType
.Element && Ref.Equal(name, Name)) {
939
Debug.Assert(NodeType ==
XmlNodeType
.EndElement || NodeType ==
XmlNodeType
.None || ReadState == ReadState.Error);
953
if (NodeType !=
XmlNodeType
.Element) {
973
if (NodeType ==
XmlNodeType
.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) {
977
Debug.Assert(NodeType ==
XmlNodeType
.EndElement);
991
XmlNodeType
nt;
997
if (nt ==
XmlNodeType
.Element && Ref.Equal(name, Name)) {
1000
} while (nt !=
XmlNodeType
.EndElement && !EOF);
1018
XmlNodeType
nt;
1024
if (nt ==
XmlNodeType
.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) {
1027
} while (nt !=
XmlNodeType
.EndElement && !EOF);
1052
if ((this.NodeType !=
XmlNodeType
.Attribute) && (this.NodeType !=
XmlNodeType
.Element)) {
1061
if (this.NodeType ==
XmlNodeType
.Attribute) {
1067
if (this.NodeType ==
XmlNodeType
.Element) {
1082
int d = this.NodeType ==
XmlNodeType
.None ? -1 : this.Depth;
1085
case
XmlNodeType
.Element:
1095
case
XmlNodeType
.Text:
1098
case
XmlNodeType
.Whitespace:
1099
case
XmlNodeType
.SignificantWhitespace:
1102
case
XmlNodeType
.CDATA:
1105
case
XmlNodeType
.EntityReference:
1108
case
XmlNodeType
.XmlDeclaration:
1109
case
XmlNodeType
.ProcessingInstruction:
1112
case
XmlNodeType
.DocumentType:
1115
case
XmlNodeType
.Comment:
1118
case
XmlNodeType
.EndElement:
1123
if (d == this.Depth && this.NodeType ==
XmlNodeType
.EndElement) {
1132
if (this.NodeType ==
XmlNodeType
.EntityReference) {
1147
if ((this.NodeType !=
XmlNodeType
.Attribute) && (this.NodeType !=
XmlNodeType
.Element)) {
1156
if (this.NodeType ==
XmlNodeType
.Attribute) {
1206
if (NodeType !=
XmlNodeType
.Element) {
1244
static internal bool IsTextualNode(
XmlNodeType
nodeType) {
1270
static internal bool CanReadContentAs(
XmlNodeType
nodeType) {
1296
static internal bool HasValueInternal(
XmlNodeType
nodeType) {
1328
if (NodeType ==
XmlNodeType
.Element && !IsEmptyElement) {
1336
if (NodeType ==
XmlNodeType
.EndElement)
1353
if (NodeType !=
XmlNodeType
.Element) {
1373
static internal Exception CreateReadContentAsException(string methodName,
XmlNodeType
nodeType, IXmlLineInfo lineInfo) {
1377
static internal Exception CreateReadElementContentAsException(string methodName,
XmlNodeType
nodeType, IXmlLineInfo lineInfo) {
1396
case
XmlNodeType
.Attribute:
1398
case
XmlNodeType
.Text:
1399
case
XmlNodeType
.Whitespace:
1400
case
XmlNodeType
.SignificantWhitespace:
1401
case
XmlNodeType
.CDATA:
1414
case
XmlNodeType
.ProcessingInstruction:
1415
case
XmlNodeType
.Comment:
1416
case
XmlNodeType
.EndEntity:
1419
case
XmlNodeType
.EntityReference:
1425
case
XmlNodeType
.EndElement:
1436
if (this.NodeType !=
XmlNodeType
.Element) {
1449
XmlNodeType
nodeType = this.NodeType;
1450
if (nodeType ==
XmlNodeType
.EndElement) {
1454
else if (nodeType ==
XmlNodeType
.Element) {
1461
if (this.NodeType !=
XmlNodeType
.EndElement) {
1732
XmlNodeType
nt = reader.NodeType;
1735
case
XmlNodeType
.Element:
1736
case
XmlNodeType
.EndElement:
1737
case
XmlNodeType
.EntityReference:
1738
case
XmlNodeType
.EndEntity:
1741
case
XmlNodeType
.Attribute:
1742
case
XmlNodeType
.ProcessingInstruction:
1745
case
XmlNodeType
.Text:
1746
case
XmlNodeType
.Whitespace:
1747
case
XmlNodeType
.SignificantWhitespace:
1748
case
XmlNodeType
.Comment:
1749
case
XmlNodeType
.XmlDeclaration:
1750
case
XmlNodeType
.CDATA:
1753
case
XmlNodeType
.DocumentType:
System\Xml\Core\XmlReaderAsync.cs (46)
158
public virtual async Task<
XmlNodeType
> MoveToContentAsync() {
161
case
XmlNodeType
.Attribute:
163
goto case
XmlNodeType
.Element;
164
case
XmlNodeType
.Element:
165
case
XmlNodeType
.EndElement:
166
case
XmlNodeType
.CDATA:
167
case
XmlNodeType
.Text:
168
case
XmlNodeType
.EntityReference:
169
case
XmlNodeType
.EndEntity:
181
if ((this.NodeType !=
XmlNodeType
.Attribute) && (this.NodeType !=
XmlNodeType
.Element)) {
190
if (this.NodeType ==
XmlNodeType
.Attribute) {
196
if (this.NodeType ==
XmlNodeType
.Element) {
211
int d = this.NodeType ==
XmlNodeType
.None ? -1 : this.Depth;
214
case
XmlNodeType
.Element:
224
case
XmlNodeType
.Text:
227
case
XmlNodeType
.Whitespace:
228
case
XmlNodeType
.SignificantWhitespace:
231
case
XmlNodeType
.CDATA:
234
case
XmlNodeType
.EntityReference:
237
case
XmlNodeType
.XmlDeclaration:
238
case
XmlNodeType
.ProcessingInstruction:
241
case
XmlNodeType
.DocumentType:
244
case
XmlNodeType
.Comment:
247
case
XmlNodeType
.EndElement:
252
if (d == this.Depth && this.NodeType ==
XmlNodeType
.EndElement) {
262
if ((this.NodeType !=
XmlNodeType
.Attribute) && (this.NodeType !=
XmlNodeType
.Element)) {
271
if (this.NodeType ==
XmlNodeType
.Attribute) {
292
if (NodeType ==
XmlNodeType
.Element && !IsEmptyElement) {
300
if (NodeType ==
XmlNodeType
.EndElement)
315
case
XmlNodeType
.Attribute:
317
case
XmlNodeType
.Text:
318
case
XmlNodeType
.Whitespace:
319
case
XmlNodeType
.SignificantWhitespace:
320
case
XmlNodeType
.CDATA:
333
case
XmlNodeType
.ProcessingInstruction:
334
case
XmlNodeType
.Comment:
335
case
XmlNodeType
.EndEntity:
338
case
XmlNodeType
.EntityReference:
344
case
XmlNodeType
.EndElement:
355
if (this.NodeType !=
XmlNodeType
.Element) {
368
XmlNodeType
nodeType = this.NodeType;
369
if (nodeType ==
XmlNodeType
.EndElement) {
373
else if (nodeType ==
XmlNodeType
.Element) {
380
if (this.NodeType !=
XmlNodeType
.EndElement) {
System\Xml\Core\XmlSubtreeReader.cs (42)
24
internal
XmlNodeType
type;
34
internal void Set(
XmlNodeType
nodeType, string localName, string prefix, string name, string namespaceUri, string value ) {
102
tmpNode.Set(
XmlNodeType
.None, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty );
110
public override
XmlNodeType
NodeType {
150
if ( curNode.type ==
XmlNodeType
.Text ) { // we are on namespace attribute value
347
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
362
else if ( curNode.type ==
XmlNodeType
.Text ) { // we are on namespace attribute value
366
Debug.Assert( curNode.type ==
XmlNodeType
.Attribute );
367
tmpNode.type =
XmlNodeType
.Text;
388
if ( reader.NodeType ==
XmlNodeType
.EndElement ||
389
( reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement ) ) {
394
Debug.Assert( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement );
449
if (reader.Depth == initialDepth && reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement) {
480
if ( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement ) {
483
while ( reader.NodeType !=
XmlNodeType
.EndElement && reader.Depth > initialDepth ) {
488
Debug.Assert( reader.NodeType ==
XmlNodeType
.EndElement ||
489
reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement ||
496
if ( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement ) {
688
case
XmlNodeType
.Element:
690
case
XmlNodeType
.EndElement:
692
case
XmlNodeType
.Attribute:
714
goto case
XmlNodeType
.Text;
715
case
XmlNodeType
.Text:
767
if ( NodeType !=
XmlNodeType
.EndElement ) {
807
case
XmlNodeType
.Element:
809
case
XmlNodeType
.EndElement:
811
case
XmlNodeType
.Attribute:
832
goto case
XmlNodeType
.Text;
833
case
XmlNodeType
.Text:
884
if ( NodeType !=
XmlNodeType
.EndElement ) {
1037
case
XmlNodeType
.Element:
1073
case
XmlNodeType
.EndElement:
1096
nsAttributes[index].Set(
XmlNodeType
.Attribute, xmlns, string.Empty, xmlns, xmlnsUri, ns );
1099
nsAttributes[index].Set(
XmlNodeType
.Attribute, prefix, xmlns, reader.NameTable.Add( string.Concat( xmlns, ":", prefix ) ), xmlnsUri, ns );
1133
if ( NodeType !=
XmlNodeType
.Element ) {
1145
case
XmlNodeType
.Element:
1147
case
XmlNodeType
.EndElement:
1170
if ( NodeType !=
XmlNodeType
.EndElement ) {
1251
tmpNode.type =
XmlNodeType
.None;
1302
case
XmlNodeType
.Element:
1306
case
XmlNodeType
.EndElement:
1310
case
XmlNodeType
.Attribute:
System\Xml\Core\XmlSubtreeReaderAsync.cs (24)
38
if ( reader.NodeType ==
XmlNodeType
.EndElement ||
39
( reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement ) ) {
44
Debug.Assert( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement );
101
if ( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement ) {
104
while ( reader.NodeType !=
XmlNodeType
.EndElement && reader.Depth > initialDepth ) {
109
Debug.Assert( reader.NodeType ==
XmlNodeType
.EndElement ||
110
reader.NodeType ==
XmlNodeType
.Element && reader.IsEmptyElement ||
117
if ( reader.NodeType ==
XmlNodeType
.Element && !reader.IsEmptyElement ) {
212
case
XmlNodeType
.Element:
214
case
XmlNodeType
.EndElement:
216
case
XmlNodeType
.Attribute:
238
goto case
XmlNodeType
.Text;
239
case
XmlNodeType
.Text:
291
if ( NodeType !=
XmlNodeType
.EndElement ) {
331
case
XmlNodeType
.Element:
333
case
XmlNodeType
.EndElement:
335
case
XmlNodeType
.Attribute:
356
goto case
XmlNodeType
.Text;
357
case
XmlNodeType
.Text:
408
if ( NodeType !=
XmlNodeType
.EndElement ) {
484
if ( NodeType !=
XmlNodeType
.Element ) {
496
case
XmlNodeType
.Element:
498
case
XmlNodeType
.EndElement:
521
if ( NodeType !=
XmlNodeType
.EndElement ) {
System\Xml\Core\XmlTextReader.cs (3)
82
public XmlTextReader( Stream xmlFragment,
XmlNodeType
fragType, XmlParserContext context ) {
87
public XmlTextReader( string xmlFragment,
XmlNodeType
fragType, XmlParserContext context ) {
108
public override
XmlNodeType
NodeType {
System\Xml\Core\XmlTextReaderImpl.cs (142)
242
XmlNodeType
fragmentType =
XmlNodeType
.Document;
470
fragmentType =
XmlNodeType
.None;
476
fragmentType =
XmlNodeType
.Element;
482
fragmentType =
XmlNodeType
.Document;
533
internal XmlTextReaderImpl( Stream xmlFragment,
XmlNodeType
fragType, XmlParserContext context )
553
internal XmlTextReaderImpl( string xmlFragment,
XmlNodeType
fragType, XmlParserContext context )
580
InitFragmentReader(
XmlNodeType
.XmlDeclaration, context, true );
843
case
XmlNodeType
.None: settings.ConformanceLevel = ConformanceLevel.Auto; break;
844
case
XmlNodeType
.Element: settings.ConformanceLevel = ConformanceLevel.Fragment; break;
845
case
XmlNodeType
.Document: settings.ConformanceLevel = ConformanceLevel.Document; break;
846
default: Debug.Assert(false); goto case
XmlNodeType
.None;
869
public override
XmlNodeType
NodeType {
951
return curNode.type ==
XmlNodeType
.Attribute ? curNode.quoteChar : '"';
1125
else if ( curNode.type !=
XmlNodeType
.Attribute ) {
1206
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
1229
curNode.SetValueNode(
XmlNodeType
.Text, string.Empty );
1321
case
XmlNodeType
.Element:
1329
Debug.Assert( curNode.type ==
XmlNodeType
.EndElement );
1333
case
XmlNodeType
.Attribute:
1335
goto case
XmlNodeType
.Element;
1354
if ( curNode.type !=
XmlNodeType
.Attribute ) {
1379
simpleValueNode.SetValueNode(
XmlNodeType
.Text, curNode.StringValue );
1430
if ( curNode.type !=
XmlNodeType
.EntityReference ) {
1493
if ( outerReader.NodeType ==
XmlNodeType
.EntityReference &&
1641
if ( curNode.type !=
XmlNodeType
.Element ) {
1689
if ( curNode.type !=
XmlNodeType
.Element ) {
2012
curNode.Clear(
XmlNodeType
.None );
2076
if ( curNode.type !=
XmlNodeType
.Element) {
2106
if ( curNode.type !=
XmlNodeType
.Element) {
2136
if ( curNode.type !=
XmlNodeType
.Element) {
2311
ParseCDataOrComment(
XmlNodeType
.Comment );
2318
ParseCDataOrComment(
XmlNodeType
.Comment );
2733
private void InitFragmentReader(
XmlNodeType
fragmentType, XmlParserContext parserContext, bool allowXmlDeclFragment ) {
2760
case
XmlNodeType
.Attribute:
2765
case
XmlNodeType
.Element:
2769
case
XmlNodeType
.Document:
2773
case
XmlNodeType
.XmlDeclaration:
3290
curNode.SetNamedNode(
XmlNodeType
.XmlDeclaration, Xml );
3594
if ( fragmentType !=
XmlNodeType
.Document ) {
3602
if ( fragmentType ==
XmlNodeType
.None ) {
3603
fragmentType =
XmlNodeType
.Element;
3617
if ( fragmentType ==
XmlNodeType
.Document || fragmentType ==
XmlNodeType
.None ) {
3618
fragmentType =
XmlNodeType
.Document;
3641
if ( fragmentType ==
XmlNodeType
.Document ) {
3644
if ( fragmentType ==
XmlNodeType
.None ) {
3645
fragmentType =
XmlNodeType
.Element;
3655
if ( fragmentType ==
XmlNodeType
.Document ) {
3659
if ( fragmentType ==
XmlNodeType
.None ) {
3660
fragmentType =
XmlNodeType
.Element;
3692
if ( fragmentType ==
XmlNodeType
.Document ) {
3699
if ( fragmentType ==
XmlNodeType
.None && curNode.type ==
XmlNodeType
.Text ) {
3700
fragmentType =
XmlNodeType
.Element;
3733
if ( !rootElementParsed && fragmentType ==
XmlNodeType
.Document ) {
3737
if ( fragmentType ==
XmlNodeType
.None ) {
3738
fragmentType = rootElementParsed ?
XmlNodeType
.Document :
XmlNodeType
.Element;
3853
if ( index == 0 && fragmentType !=
XmlNodeType
.Document ) {
3872
if ( index == 0 && curNode.type !=
XmlNodeType
.Element ) {
3880
if ( el.type !=
XmlNodeType
.Element ) {
3978
curNode.SetNamedNode(
XmlNodeType
.Element,
3985
curNode.SetNamedNode(
XmlNodeType
.Element,
3991
curNode.SetNamedNode(
XmlNodeType
.Element,
4057
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
4228
startTagNode.type =
XmlNodeType
.EndElement;
4237
if ( startTag.type ==
XmlNodeType
.Element ) {
4250
Debug.Assert( startTag.type ==
XmlNodeType
.EntityReference );
4318
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
4325
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
4548
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
4560
if ( at.type ==
XmlNodeType
.Attribute && at.prefix.Length > 0 ) {
4758
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
4770
entityChunk.SetNamedNode(
XmlNodeType
.EntityReference, entityName );
4800
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
4808
entityChunk.SetNamedNode(
XmlNodeType
.EntityReference, ps.entity.Name );
4861
if ( fragmentType ==
XmlNodeType
.Attribute ) {
4897
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
4946
XmlNodeType
nodeType = GetTextNodeType( orChars );
4947
if ( nodeType ==
XmlNodeType
.None ) {
4970
XmlNodeType
nodeType = GetTextNodeType( orChars );
4971
if ( nodeType ==
XmlNodeType
.None ) {
4987
curNode.SetValueNode(
XmlNodeType
.Text, ps.chars, startPos, endPos - startPos );
5005
XmlNodeType
nodeType = ( stringBuilder.Length < MinWhitespaceLookahedCount ) ? GetTextNodeType( orChars ) :
XmlNodeType
.Text;
5006
if ( nodeType ==
XmlNodeType
.None ) {
5366
if ( curNode.type !=
XmlNodeType
.EndElement ) {
5376
XmlNodeType
nodeType = GetWhitespaceType();
5378
if ( nodeType ==
XmlNodeType
.None ) {
5412
curNode.SetNamedNode(
XmlNodeType
.EntityReference, ParseEntityName() );
5620
curNode.SetNamedNode(
XmlNodeType
.EndEntity, lastEntity.Name );
5630
Debug.Assert( curNode.type ==
XmlNodeType
.EntityReference );
5633
curNode.type =
XmlNodeType
.EndEntity;
5661
curNode.SetNamedNode(
XmlNodeType
.ProcessingInstruction, target );
5860
ParseCDataOrComment(
XmlNodeType
.Comment );
5865
ParseCDataOrComment(
XmlNodeType
.Comment );
5871
ParseCDataOrComment(
XmlNodeType
.CDATA );
5875
private void ParseCDataOrComment(
XmlNodeType
type ) {
5899
private bool ParseCDataOrComment(
XmlNodeType
type, out int outStartPos, out int outEndPos ) {
5903
Throw( Res.Xml_UnexpectedEOF, ( type ==
XmlNodeType
.Comment ) ? "Comment" : "CDATA" );
5911
char stopChar = ( type ==
XmlNodeType
.Comment ) ? '-' : ']';
5949
else if ( type ==
XmlNodeType
.Comment ) {
6103
curNode.SetNamedNode(
XmlNodeType
.DocumentType, dtdInfo.Name.ToString(), string.Empty, null);
6913
newAttr.SetNamedNode(
XmlNodeType
.Attribute, nameTable.Add( name ) );
6947
newAttr.SetNamedNode(
XmlNodeType
.Attribute, localName, prefix, nameWPrefix );
6961
Debug.Assert( attr.type ==
XmlNodeType
.Attribute );
6992
curNode.Clear(
XmlNodeType
.None );
7076
private
XmlNodeType
GetWhitespaceType() {
7079
return
XmlNodeType
.SignificantWhitespace;
7082
return
XmlNodeType
.Whitespace;
7085
return
XmlNodeType
.None;
7088
private
XmlNodeType
GetTextNodeType( int orChars ) {
7090
return
XmlNodeType
.Text;
7391
if ( ParseCDataOrComment(
XmlNodeType
.Comment, out startPos, out pos ) ) {
7398
if ( ParseCDataOrComment(
XmlNodeType
.CDATA, out startPos, out pos ) ) {
7406
nextParsingFunction = ( index > 0 || fragmentType !=
XmlNodeType
.Document ) ? ParsingFunction.ElementContent
7659
Debug.Assert( fragmentType ==
XmlNodeType
.Attribute );
7662
if ( curNode.type ==
XmlNodeType
.None ) {
7663
curNode.type =
XmlNodeType
.Attribute;
7694
curNode.SetValueNode(
XmlNodeType
.Text, string.Empty );
7751
curNode.SetNamedNode(
XmlNodeType
.EntityReference, ParseEntityName() );
7816
curNode.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString() );
7971
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
7983
if ( curNode.type !=
XmlNodeType
.EndElement ) {
7998
case
XmlNodeType
.Attribute:
8000
case
XmlNodeType
.Text:
8001
case
XmlNodeType
.Whitespace:
8002
case
XmlNodeType
.SignificantWhitespace:
8003
case
XmlNodeType
.CDATA:
8008
case
XmlNodeType
.ProcessingInstruction:
8009
case
XmlNodeType
.Comment:
8010
case
XmlNodeType
.EndEntity:
8013
case
XmlNodeType
.EntityReference:
8141
internal
XmlNodeType
FragmentType {
8147
internal void ChangeCurrentNodeType(
XmlNodeType
newNodeType ) {
8148
Debug.Assert( curNode.type ==
XmlNodeType
.Whitespace && newNodeType ==
XmlNodeType
.SignificantWhitespace, "Incorrect node type change!" );
8198
return fragmentType ==
XmlNodeType
.Element ? ConformanceLevel.Fragment : ConformanceLevel.Document;
8301
Debug.Assert( nodes[index].type ==
XmlNodeType
.Element );
8315
Debug.Assert( nodes[index].type ==
XmlNodeType
.Element );
8431
if ( curNode.type !=
XmlNodeType
.EndElement ) {
System\Xml\Core\XmlTextReaderImplAsync.cs (85)
190
Debug.Assert(curNode.type ==
XmlNodeType
.Element);
212
curNode.SetValueNode(
XmlNodeType
.Text, string.Empty);
325
case
XmlNodeType
.Element:
333
Debug.Assert( curNode.type ==
XmlNodeType
.EndElement );
337
case
XmlNodeType
.Attribute:
339
goto case
XmlNodeType
.Element;
511
if ( curNode.type !=
XmlNodeType
.Element ) {
566
if ( curNode.type !=
XmlNodeType
.Element ) {
729
await ParseCDataOrCommentAsync(
XmlNodeType
.Comment ).ConfigureAwait(false);
736
await ParseCDataOrCommentAsync(
XmlNodeType
.Comment ).ConfigureAwait(false);
1122
curNode.SetNamedNode(
XmlNodeType
.XmlDeclaration, Xml );
1412
if (fragmentType !=
XmlNodeType
.Document) {
1431
if (fragmentType ==
XmlNodeType
.Document || fragmentType ==
XmlNodeType
.None) {
1432
fragmentType =
XmlNodeType
.Document;
1452
if (fragmentType ==
XmlNodeType
.Document) {
1455
if (fragmentType ==
XmlNodeType
.None) {
1456
fragmentType =
XmlNodeType
.Element;
1473
if (fragmentType ==
XmlNodeType
.Document) {
1486
if (fragmentType ==
XmlNodeType
.None) {
1487
fragmentType =
XmlNodeType
.Element;
1496
if (fragmentType ==
XmlNodeType
.Document) {
1501
if (fragmentType ==
XmlNodeType
.None) {
1502
fragmentType =
XmlNodeType
.Element;
1535
if (fragmentType ==
XmlNodeType
.None && curNode.type ==
XmlNodeType
.Text) {
1536
fragmentType =
XmlNodeType
.Element;
1551
if (fragmentType ==
XmlNodeType
.None && curNode.type ==
XmlNodeType
.Text) {
1552
fragmentType =
XmlNodeType
.Element;
1582
if (!rootElementParsed && fragmentType ==
XmlNodeType
.Document) {
1585
if (fragmentType ==
XmlNodeType
.None) {
1586
fragmentType = rootElementParsed ?
XmlNodeType
.Document :
XmlNodeType
.Element;
1684
if (index == 0 && fragmentType !=
XmlNodeType
.Document) {
1812
curNode.SetNamedNode(
XmlNodeType
.Element,
1819
curNode.SetNamedNode(
XmlNodeType
.Element,
1825
curNode.SetNamedNode(
XmlNodeType
.Element,
2087
startTagNode.type =
XmlNodeType
.EndElement;
2107
if ( startTag.type ==
XmlNodeType
.Element ) {
2124
Debug.Assert( startTag.type ==
XmlNodeType
.EntityReference );
2193
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
2200
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
2545
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
2557
entityChunk.SetNamedNode(
XmlNodeType
.EntityReference, entityName );
2587
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
2595
entityChunk.SetNamedNode(
XmlNodeType
.EntityReference, ps.entity.Name );
2648
if ( fragmentType ==
XmlNodeType
.Attribute ) {
2684
textChunk.SetValueNode(
XmlNodeType
.Text, stringBuilder.ToString( valueChunkStartPos, valueChunkLen ) );
2728
XmlNodeType
nodeType = GetTextNodeType(orChars);
2729
if (nodeType ==
XmlNodeType
.None) {
2786
XmlNodeType
nodeType = GetTextNodeType( orChars );
2787
if ( nodeType ==
XmlNodeType
.None ) {
2819
XmlNodeType
nodeType = GetTextNodeType( orChars );
2820
if ( nodeType ==
XmlNodeType
.None ) {
2836
curNode.SetValueNode(
XmlNodeType
.Text, ps.chars, startPos, endPos - startPos );
2861
XmlNodeType
nodeType = ( stringBuilder.Length < MinWhitespaceLookahedCount ) ? GetTextNodeType( orChars ) :
XmlNodeType
.Text;
2862
if ( nodeType ==
XmlNodeType
.None ) {
3416
if ( curNode.type !=
XmlNodeType
.EndElement ) {
3426
XmlNodeType
nodeType = GetWhitespaceType();
3428
if ( nodeType ==
XmlNodeType
.None ) {
3462
curNode.SetNamedNode(
XmlNodeType
.EntityReference, await ParseEntityNameAsync().ConfigureAwait(false) );
3652
curNode.SetNamedNode(
XmlNodeType
.ProcessingInstruction, target );
3881
await ParseCDataOrCommentAsync(
XmlNodeType
.Comment ).ConfigureAwait(false);
3886
await ParseCDataOrCommentAsync(
XmlNodeType
.Comment ).ConfigureAwait(false);
3892
return ParseCDataOrCommentAsync(
XmlNodeType
.CDATA );
3896
private async Task ParseCDataOrCommentAsync(
XmlNodeType
type ) {
3944
private async Task< Tuple<int, int, bool> > ParseCDataOrCommentTupleAsync(
XmlNodeType
type) {
3951
Throw( Res.Xml_UnexpectedEOF, ( type ==
XmlNodeType
.Comment ) ? "Comment" : "CDATA" );
3959
char stopChar = ( type ==
XmlNodeType
.Comment ) ? '-' : ']';
3999
else if ( type ==
XmlNodeType
.Comment ) {
4155
curNode.SetNamedNode(
XmlNodeType
.DocumentType, dtdInfo.Name.ToString(), string.Empty, null);
4925
Debug.Assert( curNode.type ==
XmlNodeType
.Element );
4937
if ( curNode.type !=
XmlNodeType
.EndElement ) {
4952
case
XmlNodeType
.Attribute:
4954
case
XmlNodeType
.Text:
4955
case
XmlNodeType
.Whitespace:
4956
case
XmlNodeType
.SignificantWhitespace:
4957
case
XmlNodeType
.CDATA:
4962
case
XmlNodeType
.ProcessingInstruction:
4963
case
XmlNodeType
.Comment:
4964
case
XmlNodeType
.EndEntity:
4967
case
XmlNodeType
.EntityReference:
5072
if ( curNode.type !=
XmlNodeType
.EndElement ) {
System\Xml\Core\XmlTextReaderImplHelpers.cs (11)
335
internal
XmlNodeType
type;
381
Clear(
XmlNodeType
.None );
399
return type ==
XmlNodeType
.Element && isEmptyOrDefault;
402
Debug.Assert( type ==
XmlNodeType
.Element );
409
return type ==
XmlNodeType
.Attribute && isEmptyOrDefault;
412
Debug.Assert( type ==
XmlNodeType
.Attribute );
443
internal void Clear(
XmlNodeType
type ) {
468
internal void SetValueNode(
XmlNodeType
type, string value ) {
477
internal void SetValueNode(
XmlNodeType
type, char[] chars, int startPos, int len ) {
487
internal void SetNamedNode(
XmlNodeType
type, string localName ) {
491
internal void SetNamedNode(
XmlNodeType
type, string localName, string prefix, string nameWPrefix ) {
System\Xml\Core\XmlValidatingReader.cs (3)
33
public XmlValidatingReader( string xmlFragment,
XmlNodeType
fragType, XmlParserContext context ) {
41
public XmlValidatingReader( Stream xmlFragment,
XmlNodeType
fragType, XmlParserContext context ) {
52
public override
XmlNodeType
NodeType {
System\Xml\Core\XmlValidatingReaderImpl.cs (21)
156
internal XmlValidatingReaderImpl( string xmlFragment,
XmlNodeType
fragType, XmlParserContext context )
174
internal XmlValidatingReaderImpl( Stream xmlFragment,
XmlNodeType
fragType, XmlParserContext context )
258
public override
XmlNodeType
NodeType {
640
if ( outerReader.NodeType ==
XmlNodeType
.EntityReference && parsingFunction != ParsingFunction.ResolveEntityInternally ) {
798
case
XmlNodeType
.Attribute:
800
case
XmlNodeType
.Element:
811
XmlNodeType
type = outerReader.NodeType;
812
if ( type !=
XmlNodeType
.CDATA && type !=
XmlNodeType
.Text &&
813
type !=
XmlNodeType
.Whitespace && type !=
XmlNodeType
.SignificantWhitespace &&
814
type !=
XmlNodeType
.Comment && type !=
XmlNodeType
.ProcessingInstruction ) {
818
if ( outerReader.NodeType !=
XmlNodeType
.EndElement ) {
826
case
XmlNodeType
.EndElement:
879
Debug.Assert( coreReader.NodeType ==
XmlNodeType
.EntityReference );
923
case
XmlNodeType
.Whitespace:
924
if ( coreReader.Depth > 0 || coreReaderImpl.FragmentType !=
XmlNodeType
.Document ) {
926
coreReaderImpl.ChangeCurrentNodeType(
XmlNodeType
.SignificantWhitespace );
930
case
XmlNodeType
.DocumentType:
933
case
XmlNodeType
.EntityReference:
System\Xml\Core\XmlValidatingReaderImplAsync.cs (13)
152
if ( outerReader.NodeType ==
XmlNodeType
.EntityReference && parsingFunction != ParsingFunction.ResolveEntityInternally ) {
166
case
XmlNodeType
.Attribute:
168
case
XmlNodeType
.Element:
179
XmlNodeType
type = outerReader.NodeType;
180
if ( type !=
XmlNodeType
.CDATA && type !=
XmlNodeType
.Text &&
181
type !=
XmlNodeType
.Whitespace && type !=
XmlNodeType
.SignificantWhitespace &&
182
type !=
XmlNodeType
.Comment && type !=
XmlNodeType
.ProcessingInstruction ) {
186
if ( outerReader.NodeType !=
XmlNodeType
.EndElement ) {
194
case
XmlNodeType
.EndElement:
229
Debug.Assert( coreReader.NodeType ==
XmlNodeType
.EntityReference );
System\Xml\Core\XmlWrappingReader.cs (1)
38
public override
XmlNodeType
NodeType { get { return reader.NodeType; } }
System\Xml\Core\XmlWriter.cs (17)
336
if (reader.NodeType ==
XmlNodeType
.Element || reader.NodeType ==
XmlNodeType
.XmlDeclaration) {
342
else if (reader.NodeType !=
XmlNodeType
.Attribute) {
352
if (reader.NodeType ==
XmlNodeType
.EntityReference) {
374
int d = reader.NodeType ==
XmlNodeType
.None ? -1 : reader.Depth;
377
case
XmlNodeType
.Element:
385
case
XmlNodeType
.Text:
401
case
XmlNodeType
.Whitespace:
402
case
XmlNodeType
.SignificantWhitespace:
407
case
XmlNodeType
.CDATA:
410
case
XmlNodeType
.EntityReference:
413
case
XmlNodeType
.XmlDeclaration:
414
case
XmlNodeType
.ProcessingInstruction:
417
case
XmlNodeType
.DocumentType:
421
case
XmlNodeType
.Comment:
424
case
XmlNodeType
.EndElement:
428
} while (reader.Read() && (d < reader.Depth || (d == reader.Depth && reader.NodeType ==
XmlNodeType
.EndElement)));
System\Xml\Core\XmlWriterAsync.cs (30)
218
if (reader.NodeType ==
XmlNodeType
.Element || reader.NodeType ==
XmlNodeType
.XmlDeclaration) {
224
else if (reader.NodeType !=
XmlNodeType
.Attribute) {
234
if (reader.NodeType ==
XmlNodeType
.EntityReference) {
270
int d = reader.NodeType ==
XmlNodeType
.None ? -1 : reader.Depth;
273
case
XmlNodeType
.Element:
281
case
XmlNodeType
.Text:
295
case
XmlNodeType
.Whitespace:
296
case
XmlNodeType
.SignificantWhitespace:
299
case
XmlNodeType
.CDATA:
302
case
XmlNodeType
.EntityReference:
305
case
XmlNodeType
.XmlDeclaration:
306
case
XmlNodeType
.ProcessingInstruction:
309
case
XmlNodeType
.DocumentType:
313
case
XmlNodeType
.Comment:
316
case
XmlNodeType
.EndElement:
320
} while (reader.Read() && (d < reader.Depth || (d == reader.Depth && reader.NodeType ==
XmlNodeType
.EndElement)));
329
int d = reader.NodeType ==
XmlNodeType
.None ? -1 : reader.Depth;
332
case
XmlNodeType
.Element:
340
case
XmlNodeType
.Text:
355
case
XmlNodeType
.Whitespace:
356
case
XmlNodeType
.SignificantWhitespace:
359
case
XmlNodeType
.CDATA:
362
case
XmlNodeType
.EntityReference:
365
case
XmlNodeType
.XmlDeclaration:
366
case
XmlNodeType
.ProcessingInstruction:
369
case
XmlNodeType
.DocumentType:
373
case
XmlNodeType
.Comment:
376
case
XmlNodeType
.EndElement:
380
} while (await reader.ReadAsync().ConfigureAwait(false) && (d < reader.Depth || (d == reader.Depth && reader.NodeType ==
XmlNodeType
.EndElement)));
System\Xml\Core\XsdCachingReader.cs (29)
82
if (coreReader.NodeType ==
XmlNodeType
.Element) {
105
public override
XmlNodeType
NodeType {
334
if (cacheState != CachingReaderState.Replay || cachedNode.NodeType !=
XmlNodeType
.Attribute) {
354
case
XmlNodeType
.Element:
359
case
XmlNodeType
.EndElement:
365
case
XmlNodeType
.Comment:
366
case
XmlNodeType
.ProcessingInstruction:
367
case
XmlNodeType
.Text:
368
case
XmlNodeType
.CDATA:
369
case
XmlNodeType
.Whitespace:
370
case
XmlNodeType
.SignificantWhitespace:
392
if (coreReader.NodeType !=
XmlNodeType
.Element || readAhead) { //Only when coreReader not positioned on Element node, read ahead, otherwise it is on the next element node already, since this was not cached
410
ValidatingReaderNodeData textNode = AddContent(
XmlNodeType
.Text);
418
Debug.Assert(coreReader.NodeType ==
XmlNodeType
.EndElement || (coreReader.NodeType ==
XmlNodeType
.Element && coreReader.IsEmptyElement));
423
Debug.Assert(endElementNode.NodeType ==
XmlNodeType
.EndElement);
429
ValidatingReaderNodeData recordedNode = AddContent(
XmlNodeType
.EndElement);
430
Debug.Assert(coreReader.NodeType ==
XmlNodeType
.EndElement || (coreReader.NodeType ==
XmlNodeType
.Element && coreReader.IsEmptyElement));
469
case
XmlNodeType
.Element:
470
if (coreReader.NodeType !=
XmlNodeType
.EndElement && !readAhead) { //will be true for IsDefault cases where we peek only one node ahead
480
case
XmlNodeType
.Attribute:
482
goto case
XmlNodeType
.Element;
511
if (cachedNode.NodeType !=
XmlNodeType
.Attribute) {
563
attInfo.Clear(
XmlNodeType
.Attribute);
573
attInfo = new ValidatingReaderNodeData(
XmlNodeType
.Attribute);
579
private ValidatingReaderNodeData AddContent(
XmlNodeType
nodeType) {
602
Debug.Assert(coreReader.NodeType ==
XmlNodeType
.Element);
650
textNode = new ValidatingReaderNodeData(
XmlNodeType
.Text);
System\Xml\Core\XsdCachingReaderAsync.cs (13)
38
case
XmlNodeType
.Element:
43
case
XmlNodeType
.EndElement:
49
case
XmlNodeType
.Comment:
50
case
XmlNodeType
.ProcessingInstruction:
51
case
XmlNodeType
.Text:
52
case
XmlNodeType
.CDATA:
53
case
XmlNodeType
.Whitespace:
54
case
XmlNodeType
.SignificantWhitespace:
76
if (coreReader.NodeType !=
XmlNodeType
.Element || readAhead) { //Only when coreReader not positioned on Element node, read ahead, otherwise it is on the next element node already, since this was not cached
97
case
XmlNodeType
.Element:
98
if (coreReader.NodeType !=
XmlNodeType
.EndElement && !readAhead) { //will be true for IsDefault cases where we peek only one node ahead
108
case
XmlNodeType
.Attribute:
110
goto case
XmlNodeType
.Element;
System\Xml\Core\XsdValidatingReader.cs (90)
209
public override
XmlNodeType
NodeType {
215
XmlNodeType
nodeType = coreReader.NodeType;
217
if (nodeType ==
XmlNodeType
.Whitespace && (validator.CurrentContentType == XmlSchemaContentType.TextOnly || validator.CurrentContentType == XmlSchemaContentType.Mixed)) {
218
return
XmlNodeType
.SignificantWhitespace;
354
case
XmlNodeType
.Element:
355
case
XmlNodeType
.EndElement: //
361
case
XmlNodeType
.Attribute:
387
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
412
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
437
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
462
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
487
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
512
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
537
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
562
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
590
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType; //
616
if (this.NodeType !=
XmlNodeType
.Element) {
626
if (this.NodeType !=
XmlNodeType
.Element) {
653
if (this.NodeType !=
XmlNodeType
.Element) {
680
if (this.NodeType !=
XmlNodeType
.Element) {
707
if (this.NodeType !=
XmlNodeType
.Element) {
734
if (this.NodeType !=
XmlNodeType
.Element) {
761
if (this.NodeType !=
XmlNodeType
.Element) {
788
if (this.NodeType !=
XmlNodeType
.Element) {
815
if (this.NodeType !=
XmlNodeType
.Element) {
842
if (this.NodeType !=
XmlNodeType
.Element) {
1179
case
XmlNodeType
.Element:
1196
case
XmlNodeType
.Attribute:
1198
goto case
XmlNodeType
.Element;
1228
if (NodeType ==
XmlNodeType
.Attribute) {
1343
case
XmlNodeType
.Element:
1349
case
XmlNodeType
.EndElement:
1352
case
XmlNodeType
.Attribute:
1368
case
XmlNodeType
.Element:
1369
case
XmlNodeType
.EndElement:
1382
case
XmlNodeType
.Element:
1391
case
XmlNodeType
.EndElement:
1394
case
XmlNodeType
.Attribute:
1407
case
XmlNodeType
.Element:
1413
case
XmlNodeType
.EndElement:
1416
case
XmlNodeType
.Attribute:
1431
case
XmlNodeType
.Element:
1432
case
XmlNodeType
.EndElement:
1435
case
XmlNodeType
.Attribute:
1448
if (NodeType ==
XmlNodeType
.Element || NodeType ==
XmlNodeType
.EndElement) {
1457
if (NodeType ==
XmlNodeType
.Attribute) {
1558
case
XmlNodeType
.Element:
1563
case
XmlNodeType
.Whitespace:
1564
case
XmlNodeType
.SignificantWhitespace:
1568
case
XmlNodeType
.Text: // text inside a node
1569
case
XmlNodeType
.CDATA: // <![CDATA[...]]>
1573
case
XmlNodeType
.EndElement:
1578
case
XmlNodeType
.EntityReference:
1581
case
XmlNodeType
.DocumentType:
1822
if (coreReader.NodeType ==
XmlNodeType
.Element) {
1851
XmlNodeType
nodeType = this.NodeType;
1852
if (nodeType ==
XmlNodeType
.Attribute) {
1869
else if (nodeType ==
XmlNodeType
.EndElement) {
1921
Debug.Assert(this.NodeType ==
XmlNodeType
.Element);
1942
if (this.NodeType ==
XmlNodeType
.EndElement) { //If IsDefault is true, the next node will be EndElement
1957
else if (this.NodeType ==
XmlNodeType
.Element) { //the first child is again element node
1965
if (this.NodeType !=
XmlNodeType
.EndElement) {
1985
case
XmlNodeType
.Element:
1989
case
XmlNodeType
.Text:
1990
case
XmlNodeType
.CDATA:
1994
case
XmlNodeType
.Whitespace:
1995
case
XmlNodeType
.SignificantWhitespace:
1999
case
XmlNodeType
.Comment:
2000
case
XmlNodeType
.ProcessingInstruction:
2003
case
XmlNodeType
.EndElement:
2030
Debug.Assert(coreReader.NodeType ==
XmlNodeType
.EndElement);
2037
case
XmlNodeType
.Element:
2041
case
XmlNodeType
.Text:
2042
case
XmlNodeType
.CDATA:
2046
case
XmlNodeType
.Whitespace:
2047
case
XmlNodeType
.SignificantWhitespace:
2051
case
XmlNodeType
.Comment:
2052
case
XmlNodeType
.ProcessingInstruction:
2055
case
XmlNodeType
.EndElement:
2082
case
XmlNodeType
.Element:
2086
case
XmlNodeType
.Text:
2087
case
XmlNodeType
.CDATA:
2091
case
XmlNodeType
.Whitespace:
2092
case
XmlNodeType
.SignificantWhitespace:
2096
case
XmlNodeType
.Comment:
2097
case
XmlNodeType
.ProcessingInstruction:
2100
case
XmlNodeType
.EndElement:
2145
Debug.Assert(NodeType !=
XmlNodeType
.Attribute);
2164
textNode = new ValidatingReaderNodeData(
XmlNodeType
.Text);
System\Xml\Core\XsdValidatingReaderAsync.cs (32)
41
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType;
72
XmlSchemaType xmlType = NodeType ==
XmlNodeType
.Attribute ? AttributeXmlType : ElementXmlType; //
98
if (this.NodeType !=
XmlNodeType
.Element) {
109
if (this.NodeType !=
XmlNodeType
.Element) {
139
if (this.NodeType !=
XmlNodeType
.Element) {
279
case
XmlNodeType
.Element:
296
case
XmlNodeType
.Attribute:
298
goto case
XmlNodeType
.Element;
405
case
XmlNodeType
.Element:
409
case
XmlNodeType
.Whitespace:
410
case
XmlNodeType
.SignificantWhitespace:
414
case
XmlNodeType
.Text: // text inside a node
415
case
XmlNodeType
.CDATA: // <![CDATA[...]]>
419
case
XmlNodeType
.EndElement:
423
case
XmlNodeType
.EntityReference:
426
case
XmlNodeType
.DocumentType:
531
if (coreReader.NodeType ==
XmlNodeType
.Element) {
563
XmlNodeType
nodeType = this.NodeType;
564
if (nodeType ==
XmlNodeType
.Attribute) {
583
else if (nodeType ==
XmlNodeType
.EndElement) {
643
Debug.Assert(this.NodeType ==
XmlNodeType
.Element);
665
if (this.NodeType ==
XmlNodeType
.EndElement) { //If IsDefault is true, the next node will be EndElement
680
else if (this.NodeType ==
XmlNodeType
.Element) { //the first child is again element node
691
if (this.NodeType !=
XmlNodeType
.EndElement) {
712
case
XmlNodeType
.Element:
716
case
XmlNodeType
.Text:
717
case
XmlNodeType
.CDATA:
721
case
XmlNodeType
.Whitespace:
722
case
XmlNodeType
.SignificantWhitespace:
726
case
XmlNodeType
.Comment:
727
case
XmlNodeType
.ProcessingInstruction:
730
case
XmlNodeType
.EndElement:
System\Xml\Dom\DocumentSchemaValidator.cs (27)
95
case
XmlNodeType
.Document:
99
case
XmlNodeType
.DocumentFragment:
102
case
XmlNodeType
.Element: //Validate children of this element
119
if (nodeToValidate.ParentNode.NodeType ==
XmlNodeType
.Document) {
133
case
XmlNodeType
.Attribute:
166
case
XmlNodeType
.Element:
190
case
XmlNodeType
.Attribute:
245
case
XmlNodeType
.Document:
253
case
XmlNodeType
.DocumentFragment:
254
case
XmlNodeType
.EntityReference:
260
case
XmlNodeType
.Element:
264
case
XmlNodeType
.Attribute: //Top-level attribute
272
case
XmlNodeType
.Text:
276
case
XmlNodeType
.CDATA:
280
case
XmlNodeType
.Whitespace:
281
case
XmlNodeType
.SignificantWhitespace:
285
case
XmlNodeType
.Comment:
286
case
XmlNodeType
.ProcessingInstruction:
441
Debug.Assert(elementToValidate.ParentNode.NodeType !=
XmlNodeType
.Document); //Handle if it is the documentElement seperately
649
case
XmlNodeType
.EntityReference:
653
case
XmlNodeType
.Element: //Flat validation, do not drill down into children
657
case
XmlNodeType
.Text:
658
case
XmlNodeType
.CDATA:
662
case
XmlNodeType
.Whitespace:
663
case
XmlNodeType
.SignificantWhitespace:
667
case
XmlNodeType
.Comment:
668
case
XmlNodeType
.ProcessingInstruction:
System\Xml\Dom\DocumentXmlWriter.cs (6)
438
XmlNodeType
nodeType =
XmlNodeType
.None;
447
if (nodeType ==
XmlNodeType
.Document) {
450
else if (nodeType ==
XmlNodeType
.DocumentFragment) {
457
if (nodeType ==
XmlNodeType
.Document) {
460
else if (nodeType ==
XmlNodeType
.DocumentFragment) {
System\Xml\Dom\DocumentXPathNavigator.cs (126)
48
case
XmlNodeType
.Attribute:
54
case
XmlNodeType
.Text:
55
case
XmlNodeType
.CDATA:
56
case
XmlNodeType
.Whitespace:
57
case
XmlNodeType
.SignificantWhitespace:
68
goto case
XmlNodeType
.Element;
69
case
XmlNodeType
.Element:
70
case
XmlNodeType
.ProcessingInstruction:
71
case
XmlNodeType
.Comment:
113
case
XmlNodeType
.Element:
114
case
XmlNodeType
.ProcessingInstruction:
116
case
XmlNodeType
.Attribute:
145
case
XmlNodeType
.Element:
146
case
XmlNodeType
.DocumentFragment:
148
case
XmlNodeType
.Document:
150
case
XmlNodeType
.Text:
151
case
XmlNodeType
.CDATA:
152
case
XmlNodeType
.Whitespace:
153
case
XmlNodeType
.SignificantWhitespace:
308
&& node.NodeType !=
XmlNodeType
.Element) {
645
if (source.NodeType ==
XmlNodeType
.Attribute) {
667
case
XmlNodeType
.Element:
673
case
XmlNodeType
.DocumentFragment:
674
case
XmlNodeType
.Document:
753
if (source.NodeType ==
XmlNodeType
.Attribute) {
760
if (child.NodeType ==
XmlNodeType
.Element
774
if (source.NodeType ==
XmlNodeType
.Attribute) {
804
case
XmlNodeType
.Attribute:
815
if (following.NodeType ==
XmlNodeType
.Attribute) {
848
while (following.NodeType !=
XmlNodeType
.Element
864
case
XmlNodeType
.Attribute:
880
case
XmlNodeType
.Attribute:
886
case
XmlNodeType
.Text:
887
case
XmlNodeType
.CDATA:
888
case
XmlNodeType
.SignificantWhitespace:
889
case
XmlNodeType
.Whitespace:
932
if (sibling.NodeType ==
XmlNodeType
.Element
976
case
XmlNodeType
.Element:
982
case
XmlNodeType
.DocumentFragment:
983
case
XmlNodeType
.Document:
1030
if (source.NodeType ==
XmlNodeType
.Document) {
1198
if ( nsAtom == null || this.source.NodeType ==
XmlNodeType
.Attribute )
1220
XmlNodeType
curNT = source.NodeType;
1221
if ( curNT !=
XmlNodeType
.Document && curNT !=
XmlNodeType
.Element ) {
1241
case
XmlNodeType
.Element:
1242
case
XmlNodeType
.Document:
1243
case
XmlNodeType
.DocumentFragment:
1256
case
XmlNodeType
.Element:
1257
case
XmlNodeType
.Document:
1258
case
XmlNodeType
.DocumentFragment:
1273
case
XmlNodeType
.Attribute:
1274
case
XmlNodeType
.Document:
1275
case
XmlNodeType
.DocumentFragment:
1277
case
XmlNodeType
.Text:
1278
case
XmlNodeType
.CDATA:
1279
case
XmlNodeType
.SignificantWhitespace:
1280
case
XmlNodeType
.Whitespace:
1294
case
XmlNodeType
.Attribute:
1295
case
XmlNodeType
.Document:
1296
case
XmlNodeType
.DocumentFragment:
1298
case
XmlNodeType
.Text:
1299
case
XmlNodeType
.CDATA:
1300
case
XmlNodeType
.SignificantWhitespace:
1301
case
XmlNodeType
.Whitespace:
1315
if (source.NodeType !=
XmlNodeType
.Element) {
1343
case
XmlNodeType
.Attribute:
1344
case
XmlNodeType
.Document:
1345
case
XmlNodeType
.DocumentFragment:
1347
case
XmlNodeType
.Text:
1348
case
XmlNodeType
.CDATA:
1349
case
XmlNodeType
.SignificantWhitespace:
1350
case
XmlNodeType
.Whitespace:
1392
case
XmlNodeType
.Attribute:
1403
case
XmlNodeType
.Text:
1404
case
XmlNodeType
.CDATA:
1405
case
XmlNodeType
.SignificantWhitespace:
1406
case
XmlNodeType
.Whitespace:
1408
goto case
XmlNodeType
.Element;
1409
case
XmlNodeType
.Element:
1410
case
XmlNodeType
.ProcessingInstruction:
1411
case
XmlNodeType
.Comment:
1442
case
XmlNodeType
.Attribute:
1453
case
XmlNodeType
.Text:
1454
case
XmlNodeType
.CDATA:
1455
case
XmlNodeType
.SignificantWhitespace:
1456
case
XmlNodeType
.Whitespace:
1461
goto case
XmlNodeType
.Element;
1462
case
XmlNodeType
.Element:
1463
case
XmlNodeType
.ProcessingInstruction:
1464
case
XmlNodeType
.Comment:
1597
&& parent.NodeType ==
XmlNodeType
.EntityReference) {
1614
&& child.NodeType ==
XmlNodeType
.EntityReference) {
1633
|| node.NodeType !=
XmlNodeType
.EntityReference) {
1639
&& sibling.NodeType ==
XmlNodeType
.EntityReference) {
1658
|| node.NodeType !=
XmlNodeType
.EntityReference) {
1664
&& sibling.NodeType ==
XmlNodeType
.EntityReference) {
1690
|| node.NodeType !=
XmlNodeType
.EntityReference) {
1697
case
XmlNodeType
.EntityReference:
1700
case
XmlNodeType
.Text:
1701
case
XmlNodeType
.CDATA:
1702
case
XmlNodeType
.Whitespace:
1703
case
XmlNodeType
.SignificantWhitespace:
1748
case
XmlNodeType
.Element:
1750
case
XmlNodeType
.DocumentFragment:
1752
case
XmlNodeType
.Element:
1753
case
XmlNodeType
.Text:
1754
case
XmlNodeType
.CDATA:
1755
case
XmlNodeType
.ProcessingInstruction:
1756
case
XmlNodeType
.Comment:
1757
case
XmlNodeType
.Whitespace:
1758
case
XmlNodeType
.SignificantWhitespace:
1762
case
XmlNodeType
.Document:
1764
case
XmlNodeType
.Element:
1765
case
XmlNodeType
.ProcessingInstruction:
1766
case
XmlNodeType
.Comment:
1865
if (node.NodeType ==
XmlNodeType
.Element && Match(node)) {
1876
Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType !=
XmlNodeType
.Attribute );
1887
return ( node.NodeType ==
XmlNodeType
.Element );
1905
if ( node.NodeType ==
XmlNodeType
.Element && Match( node ) ) {
1918
Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType !=
XmlNodeType
.Attribute );
1931
Debug.Assert( node.NodeType ==
XmlNodeType
.Element );
1951
if ( node.NodeType ==
XmlNodeType
.Element && Match( node ) ) {
1965
Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType !=
XmlNodeType
.Attribute );
1985
Debug.Assert( node.NodeType ==
XmlNodeType
.Element );
2007
if ( node.NodeType ==
XmlNodeType
.Element && Match( node ) ) {
System\Xml\Dom\XmlAttribute.cs (5)
83
public override
XmlNodeType
NodeType {
84
get { return
XmlNodeType
.Attribute;}
180
internal override bool IsValidChildType(
XmlNodeType
type ) {
181
return(type ==
XmlNodeType
.Text) || (type ==
XmlNodeType
.EntityReference);
System\Xml\Dom\XmlCDataSection.cs (7)
35
public override
XmlNodeType
NodeType {
37
return
XmlNodeType
.CDATA;
44
case
XmlNodeType
.Document:
46
case
XmlNodeType
.Text:
47
case
XmlNodeType
.CDATA:
48
case
XmlNodeType
.Whitespace:
49
case
XmlNodeType
.SignificantWhitespace:
System\Xml\Dom\XmlCharacterData.cs (6)
176
Debug.Assert(XmlDocument.IsTextNode(node.NodeType) || (node.ParentNode != null && node.ParentNode.NodeType ==
XmlNodeType
.EntityReference));
179
case
XmlNodeType
.Whitespace :
181
case
XmlNodeType
.SignificantWhitespace :
184
case
XmlNodeType
.Text :
185
case
XmlNodeType
.CDATA:
188
case
XmlNodeType
.EntityReference :
System\Xml\Dom\XmlComment.cs (2)
28
public override
XmlNodeType
NodeType {
29
get { return
XmlNodeType
.Comment;}
System\Xml\Dom\XmlDeclaration.cs (2)
128
public override
XmlNodeType
NodeType {
129
get { return
XmlNodeType
.XmlDeclaration;}
System\Xml\Dom\XmlDocument.cs (98)
257
public override
XmlNodeType
NodeType {
258
get { return
XmlNodeType
.Document; }
267
get { return(XmlDocumentType) FindChild(
XmlNodeType
.DocumentType ); }
297
get { return(XmlElement)FindChild(
XmlNodeType
.Element); }
362
internal override bool IsValidChildType(
XmlNodeType
type ) {
364
case
XmlNodeType
.ProcessingInstruction:
365
case
XmlNodeType
.Comment:
366
case
XmlNodeType
.Whitespace:
367
case
XmlNodeType
.SignificantWhitespace:
370
case
XmlNodeType
.DocumentType:
375
case
XmlNodeType
.Element:
380
case
XmlNodeType
.XmlDeclaration:
391
private bool HasNodeTypeInPrevSiblings(
XmlNodeType
nt, XmlNode refNode ) {
410
private bool HasNodeTypeInNextSiblings(
XmlNodeType
nt, XmlNode refNode ) {
428
case
XmlNodeType
.XmlDeclaration:
431
case
XmlNodeType
.ProcessingInstruction:
432
case
XmlNodeType
.Comment:
433
return refChild.NodeType !=
XmlNodeType
.XmlDeclaration;
435
case
XmlNodeType
.DocumentType: {
436
if ( refChild.NodeType !=
XmlNodeType
.XmlDeclaration ) {
439
return !HasNodeTypeInPrevSiblings(
XmlNodeType
.Element, refChild.PreviousSibling );
444
case
XmlNodeType
.Element: {
445
if ( refChild.NodeType !=
XmlNodeType
.XmlDeclaration ) {
448
return !HasNodeTypeInNextSiblings(
XmlNodeType
.DocumentType, refChild );
465
case
XmlNodeType
.ProcessingInstruction:
466
case
XmlNodeType
.Comment:
467
case
XmlNodeType
.Whitespace:
468
case
XmlNodeType
.SignificantWhitespace:
471
case
XmlNodeType
.DocumentType: {
474
return !HasNodeTypeInPrevSiblings(
XmlNodeType
.Element, refChild );
477
case
XmlNodeType
.Element: {
478
return !HasNodeTypeInNextSiblings(
XmlNodeType
.DocumentType, refChild.NextSibling );
623
XmlNodeType
nodeType = node.NodeType;
625
XmlNodeType
parentType;
628
case
XmlNodeType
.EntityReference:
629
case
XmlNodeType
.Entity:
630
case
XmlNodeType
.DocumentType:
631
case
XmlNodeType
.Notation:
632
case
XmlNodeType
.XmlDeclaration:
634
case
XmlNodeType
.Text:
635
case
XmlNodeType
.CDATA:
636
case
XmlNodeType
.SignificantWhitespace:
641
if (parentType ==
XmlNodeType
.Attribute) {
644
else if (parentType ==
XmlNodeType
.EntityReference) {
655
case
XmlNodeType
.Whitespace:
660
if (parentType ==
XmlNodeType
.Document
661
|| parentType ==
XmlNodeType
.Attribute) {
664
else if (parentType ==
XmlNodeType
.EntityReference) {
681
internal static bool IsTextNode(
XmlNodeType
nt ) {
683
case
XmlNodeType
.Text:
684
case
XmlNodeType
.CDATA:
685
case
XmlNodeType
.Whitespace:
686
case
XmlNodeType
.SignificantWhitespace:
702
if ( intnode.ParentNode != null && intnode.ParentNode.NodeType ==
XmlNodeType
.EntityReference ) {
720
while( n.NodeType ==
XmlNodeType
.EntityReference ) {
794
case
XmlNodeType
.Element:
801
case
XmlNodeType
.Attribute:
807
case
XmlNodeType
.Text:
810
case
XmlNodeType
.Comment:
813
case
XmlNodeType
.ProcessingInstruction:
816
case
XmlNodeType
.XmlDeclaration:
820
case
XmlNodeType
.CDATA:
823
case
XmlNodeType
.DocumentType:
827
case
XmlNodeType
.DocumentFragment:
833
case
XmlNodeType
.EntityReference:
839
case
XmlNodeType
.Whitespace:
843
case
XmlNodeType
.SignificantWhitespace:
864
Debug.Assert( toNode.NodeType !=
XmlNodeType
.EntityReference );
928
public virtual XmlNode CreateNode(
XmlNodeType
type, string prefix, string name, string namespaceURI ) {
930
case
XmlNodeType
.Element:
936
case
XmlNodeType
.Attribute:
942
case
XmlNodeType
.Text:
945
case
XmlNodeType
.CDATA:
948
case
XmlNodeType
.EntityReference:
951
case
XmlNodeType
.ProcessingInstruction:
954
case
XmlNodeType
.XmlDeclaration:
957
case
XmlNodeType
.Comment:
960
case
XmlNodeType
.DocumentFragment:
963
case
XmlNodeType
.DocumentType:
966
case
XmlNodeType
.Document:
969
case
XmlNodeType
.SignificantWhitespace:
972
case
XmlNodeType
.Whitespace:
988
public virtual XmlNode CreateNode(
XmlNodeType
type, string name, string namespaceURI ) {
1008
internal
XmlNodeType
ConvertToNodeType( string nodeTypeString ) {
1010
return
XmlNodeType
.Element;
1013
return
XmlNodeType
.Attribute;
1016
return
XmlNodeType
.Text;
1019
return
XmlNodeType
.CDATA;
1022
return
XmlNodeType
.EntityReference;
1025
return
XmlNodeType
.Entity;
1028
return
XmlNodeType
.ProcessingInstruction;
1031
return
XmlNodeType
.Comment;
1034
return
XmlNodeType
.Document;
1037
return
XmlNodeType
.DocumentType;
1040
return
XmlNodeType
.DocumentFragment;
1043
return
XmlNodeType
.Notation;
1046
return
XmlNodeType
.SignificantWhitespace;
1049
return
XmlNodeType
.Whitespace;
System\Xml\Dom\XmlDocumentFragment.cs (16)
69
public override
XmlNodeType
NodeType {
70
get { return
XmlNodeType
.DocumentFragment;}
96
loader.ParsePartialContent( this, value,
XmlNodeType
.Element );
119
internal override bool IsValidChildType(
XmlNodeType
type ) {
121
case
XmlNodeType
.Element:
122
case
XmlNodeType
.Text:
123
case
XmlNodeType
.EntityReference:
124
case
XmlNodeType
.Comment:
125
case
XmlNodeType
.Whitespace:
126
case
XmlNodeType
.SignificantWhitespace:
127
case
XmlNodeType
.ProcessingInstruction:
128
case
XmlNodeType
.CDATA:
131
case
XmlNodeType
.XmlDeclaration:
134
if (firstNode == null || firstNode.NodeType !=
XmlNodeType
.XmlDeclaration)
144
if (newChild.NodeType ==
XmlNodeType
.XmlDeclaration) {
156
if (newChild.NodeType ==
XmlNodeType
.XmlDeclaration) {
System\Xml\Dom\XmlDocumentType.cs (2)
52
public override
XmlNodeType
NodeType {
53
get { return
XmlNodeType
.DocumentType;}
System\Xml\Dom\XmlElement.cs (12)
93
public override
XmlNodeType
NodeType {
94
get { return
XmlNodeType
.Element;}
181
internal override bool IsValidChildType(
XmlNodeType
type ) {
183
case
XmlNodeType
.Element:
184
case
XmlNodeType
.Text:
185
case
XmlNodeType
.EntityReference:
186
case
XmlNodeType
.Comment:
187
case
XmlNodeType
.Whitespace:
188
case
XmlNodeType
.SignificantWhitespace:
189
case
XmlNodeType
.ProcessingInstruction:
190
case
XmlNodeType
.CDATA:
500
linkedNode.NodeType ==
XmlNodeType
.Text && //which is text node
System\Xml\Dom\XmlElementList.cs (3)
32
Debug.Assert( parent.NodeType ==
XmlNodeType
.Element || parent.NodeType ==
XmlNodeType
.Document );
142
if (curNode.NodeType ==
XmlNodeType
.Element) {
System\Xml\Dom\XmlEntity.cs (11)
86
internal override bool IsValidChildType(
XmlNodeType
type ) {
87
return(type ==
XmlNodeType
.Text ||
88
type ==
XmlNodeType
.Element ||
89
type ==
XmlNodeType
.ProcessingInstruction ||
90
type ==
XmlNodeType
.Comment ||
91
type ==
XmlNodeType
.CDATA ||
92
type ==
XmlNodeType
.Whitespace ||
93
type ==
XmlNodeType
.SignificantWhitespace ||
94
type ==
XmlNodeType
.EntityReference);
98
public override
XmlNodeType
NodeType {
99
get { return
XmlNodeType
.Entity;}
System\Xml\Dom\XmlEntityReference.cs (11)
70
public override
XmlNodeType
NodeType {
71
get { return
XmlNodeType
.EntityReference;}
117
internal override bool IsValidChildType(
XmlNodeType
type ) {
119
case
XmlNodeType
.Element:
120
case
XmlNodeType
.Text:
121
case
XmlNodeType
.EntityReference:
122
case
XmlNodeType
.Comment:
123
case
XmlNodeType
.Whitespace:
124
case
XmlNodeType
.SignificantWhitespace:
125
case
XmlNodeType
.ProcessingInstruction:
126
case
XmlNodeType
.CDATA:
System\Xml\Dom\XmlLoader.cs (53)
80
if ( n.NodeType !=
XmlNodeType
.Attribute )
96
case
XmlNodeType
.Element:
128
case
XmlNodeType
.EndElement:
132
Debug.Assert( parent.NodeType ==
XmlNodeType
.Element );
146
case
XmlNodeType
.EntityReference:
150
case
XmlNodeType
.EndEntity:
154
case
XmlNodeType
.Attribute:
158
case
XmlNodeType
.Text:
162
case
XmlNodeType
.SignificantWhitespace:
166
case
XmlNodeType
.Whitespace:
178
case
XmlNodeType
.CDATA:
183
case
XmlNodeType
.XmlDeclaration:
187
case
XmlNodeType
.ProcessingInstruction:
191
case
XmlNodeType
.Comment:
195
case
XmlNodeType
.DocumentType:
223
Debug.Assert(reader.NodeType ==
XmlNodeType
.Attribute);
238
case
XmlNodeType
.Text:
241
case
XmlNodeType
.EntityReference:
288
case
XmlNodeType
.Text:
291
case
XmlNodeType
.EndEntity:
293
case
XmlNodeType
.EntityReference:
315
Debug.Assert( reader.NodeType ==
XmlNodeType
.EntityReference );
319
while ( reader.Read() && reader.NodeType !=
XmlNodeType
.EndEntity ) {
334
Debug.Assert( reader.NodeType ==
XmlNodeType
.XmlDeclaration );
369
Debug.Assert( reader.NodeType ==
XmlNodeType
.DocumentType );
409
case
XmlNodeType
.Element:
433
case
XmlNodeType
.EndElement:
434
Debug.Assert( parent.NodeType ==
XmlNodeType
.Element );
441
case
XmlNodeType
.EntityReference:
445
case
XmlNodeType
.EndEntity:
448
case
XmlNodeType
.Attribute:
452
case
XmlNodeType
.SignificantWhitespace:
456
case
XmlNodeType
.Whitespace:
465
case
XmlNodeType
.Text:
469
case
XmlNodeType
.CDATA:
473
case
XmlNodeType
.ProcessingInstruction:
477
case
XmlNodeType
.Comment:
526
XmlTextReaderImpl tr = new XmlTextReaderImpl("",
XmlNodeType
.Element, pc);
656
internal XmlNamespaceManager ParsePartialContent( XmlNode parentNode, string innerxmltext,
XmlNodeType
nt) {
658
Debug.Assert( parentNode.NodeType !=
XmlNodeType
.Document );
668
if ( nt ==
XmlNodeType
.Entity ) {
690
XmlNamespaceManager mgr = ParsePartialContent( node, innerxmltext,
XmlNodeType
.Element );
697
ParsePartialContent( node, innerxmltext,
XmlNodeType
.Attribute );
756
ParsePartialContent( ent, EntitizeName(ent.Name),
XmlNodeType
.Entity );
792
ParsePartialContent( eref, EntitizeName(eref.Name),
XmlNodeType
.EntityReference );
809
private XmlReader CreateInnerXmlReader( String xmlFragment,
XmlNodeType
nt, XmlParserContext context, XmlDocument doc ) {
810
XmlNodeType
contentNT = nt;
811
if ( contentNT ==
XmlNodeType
.Entity || contentNT ==
XmlNodeType
.EntityReference )
812
contentNT =
XmlNodeType
.Element;
842
if ( nt ==
XmlNodeType
.Entity || nt ==
XmlNodeType
.EntityReference ) {
872
static internal Exception UnexpectedNodeType(
XmlNodeType
nodetype ) {
System\Xml\Dom\XmlNamedNodemap.cs (2)
122
if ( node.NodeType ==
XmlNodeType
.Attribute )
180
if ( node.NodeType ==
XmlNodeType
.Attribute )
System\Xml\Dom\XmlNode.cs (62)
96
public abstract
XmlNodeType
NodeType {
105
if (parentNode.NodeType !=
XmlNodeType
.Document) {
151
if ( parentNode.NodeType ==
XmlNodeType
.Document)
198
while (parent != null && !( parent.NodeType ==
XmlNodeType
.Document ))
232
if (newChild.NodeType ==
XmlNodeType
.DocumentFragment) {
331
if (newChild.NodeType ==
XmlNodeType
.DocumentFragment) {
511
if (newChild.NodeType ==
XmlNodeType
.DocumentFragment) {
597
internal virtual bool IsValidChildType(
XmlNodeType
type ) {
636
case
XmlNodeType
.Text:
637
case
XmlNodeType
.Whitespace:
638
case
XmlNodeType
.SignificantWhitespace: {
651
case
XmlNodeType
.Element: {
674
Debug.Assert( firstNode.NodeType ==
XmlNodeType
.Text
675
|| firstNode.NodeType ==
XmlNodeType
.SignificantWhitespace
676
|| firstNode.NodeType ==
XmlNodeType
.Whitespace
677
|| secondNode.NodeType ==
XmlNodeType
.Text
678
|| secondNode.NodeType ==
XmlNodeType
.SignificantWhitespace
679
|| secondNode.NodeType ==
XmlNodeType
.Whitespace );
680
if ( firstNode.NodeType ==
XmlNodeType
.Text )
682
if ( secondNode.NodeType ==
XmlNodeType
.Text )
684
if ( firstNode.NodeType ==
XmlNodeType
.SignificantWhitespace )
686
if ( secondNode.NodeType ==
XmlNodeType
.SignificantWhitespace )
688
if ( firstNode.NodeType ==
XmlNodeType
.Whitespace )
690
if ( secondNode.NodeType ==
XmlNodeType
.Whitespace )
734
case
XmlNodeType
.EntityReference:
735
case
XmlNodeType
.Entity:
738
case
XmlNodeType
.Attribute:
772
if (child.NodeType ==
XmlNodeType
.Text || child.NodeType ==
XmlNodeType
.CDATA
773
|| child.NodeType ==
XmlNodeType
.Whitespace || child.NodeType ==
XmlNodeType
.SignificantWhitespace)
791
XmlNodeType
nodeType = fc.NodeType;
793
case
XmlNodeType
.Text:
794
case
XmlNodeType
.CDATA:
795
case
XmlNodeType
.Whitespace:
796
case
XmlNodeType
.SignificantWhitespace:
809
&& firstChild.NodeType ==
XmlNodeType
.Text )//which is a text node
865
XmlNodeType
nt = curNode.NodeType;
868
if ( nt ==
XmlNodeType
.EntityReference )
870
if ( nt ==
XmlNodeType
.Document
871
|| nt ==
XmlNodeType
.Entity
872
|| nt ==
XmlNodeType
.Attribute )
901
if (NodeType ==
XmlNodeType
.Document)
924
if (node.NodeType ==
XmlNodeType
.Element) {
957
else if (node.NodeType ==
XmlNodeType
.Attribute) {
989
if (node.NodeType ==
XmlNodeType
.Element) {
1018
else if (node.NodeType ==
XmlNodeType
.Attribute) {
1040
if (n.NodeType ==
XmlNodeType
.Element && n.Name == name)
1053
if (n.NodeType ==
XmlNodeType
.Element && n.LocalName == localname && n.NamespaceURI == ns)
1085
internal virtual XmlNode FindChild(
XmlNodeType
type ) {
1209
XmlNodeType
nodeType = node.NodeType;
1212
case
XmlNodeType
.Element:
1213
case
XmlNodeType
.EntityReference:
1216
case
XmlNodeType
.Attribute:
1217
case
XmlNodeType
.ProcessingInstruction:
1220
case
XmlNodeType
.Text:
1221
case
XmlNodeType
.CDATA:
1222
case
XmlNodeType
.Comment:
1223
case
XmlNodeType
.Whitespace:
1224
case
XmlNodeType
.SignificantWhitespace:
1225
case
XmlNodeType
.XmlDeclaration:
1228
case
XmlNodeType
.DocumentType:
System\Xml\Dom\XmlNodeReader.cs (135)
75
XmlNodeType
nt = curNode.NodeType;
76
if ( nt ==
XmlNodeType
.Attribute ) {
87
if ( nt ==
XmlNodeType
.Document )
100
public
XmlNodeType
NodeType {
102
XmlNodeType
nt = curNode.NodeType;
104
Debug.Assert( nt ==
XmlNodeType
.XmlDeclaration || nt ==
XmlNodeType
.DocumentType );
106
return
XmlNodeType
.Text;
108
return
XmlNodeType
.Attribute;
121
Debug.Assert( curNode.NodeType ==
XmlNodeType
.XmlDeclaration || curNode.NodeType ==
XmlNodeType
.DocumentType );
126
if ( curNode.NodeType ==
XmlNodeType
.XmlDeclaration )
169
private bool IsLocalNameEmpty (
XmlNodeType
nt) {
171
case
XmlNodeType
.None :
172
case
XmlNodeType
.Text :
173
case
XmlNodeType
.CDATA :
174
case
XmlNodeType
.Comment :
175
case
XmlNodeType
.Document :
176
case
XmlNodeType
.DocumentFragment :
177
case
XmlNodeType
.Whitespace :
178
case
XmlNodeType
.SignificantWhitespace :
179
case
XmlNodeType
.EndElement :
180
case
XmlNodeType
.EndEntity :
182
case
XmlNodeType
.Element :
183
case
XmlNodeType
.Attribute :
184
case
XmlNodeType
.EntityReference :
185
case
XmlNodeType
.Entity :
186
case
XmlNodeType
.ProcessingInstruction :
187
case
XmlNodeType
.DocumentType :
188
case
XmlNodeType
.Notation :
189
case
XmlNodeType
.XmlDeclaration :
207
Debug.Assert( curNode.NodeType ==
XmlNodeType
.XmlDeclaration || curNode.NodeType ==
XmlNodeType
.DocumentType );
211
if ( curNode.Value != null || curNode.NodeType ==
XmlNodeType
.DocumentType )
221
XmlNodeType
nt = curNode.NodeType;
224
Debug.Assert( nt ==
XmlNodeType
.XmlDeclaration || nt ==
XmlNodeType
.DocumentType );
226
if ( curNode.NodeType ==
XmlNodeType
.XmlDeclaration )
231
if ( nt ==
XmlNodeType
.DocumentType )
233
else if ( nt ==
XmlNodeType
.XmlDeclaration ) {
263
if (curNode.NodeType ==
XmlNodeType
.Element) {
272
if (curNode.NodeType ==
XmlNodeType
.Attribute) {
293
XmlNodeType
nt = curNode.NodeType;
294
if ( nt ==
XmlNodeType
.Element )
296
else if ( nt ==
XmlNodeType
.Attribute
297
|| ( this.bOnAttrVal && nt !=
XmlNodeType
.XmlDeclaration && nt !=
XmlNodeType
.DocumentType ) )
299
else if ( nt ==
XmlNodeType
.XmlDeclaration ) {
304
} else if ( nt ==
XmlNodeType
.DocumentType ) {
429
case
XmlNodeType
.Element:
431
case
XmlNodeType
.Attribute :
433
case
XmlNodeType
.XmlDeclaration:
435
case
XmlNodeType
.DocumentType:
451
case
XmlNodeType
.Element:
453
case
XmlNodeType
.Attribute :
455
case
XmlNodeType
.XmlDeclaration:
457
case
XmlNodeType
.DocumentType:
467
case
XmlNodeType
.Element:
470
case
XmlNodeType
.Attribute :
473
case
XmlNodeType
.XmlDeclaration: {
477
case
XmlNodeType
.DocumentType: {
505
XmlNodeType
nt = curNode.NodeType;
506
return ( nt ==
XmlNodeType
.XmlDeclaration || nt ==
XmlNodeType
.DocumentType );
519
while ( curNode.NodeType !=
XmlNodeType
.Attribute && ( ( curNode = curNode.ParentNode ) != null ) )
526
public void ResetMove( ref int level, ref
XmlNodeType
nt ) {
542
if ( this.bOnAttrVal && curNode.NodeType !=
XmlNodeType
.Attribute )
544
if ( curNode.NodeType ==
XmlNodeType
.Attribute ) {
548
nt =
XmlNodeType
.Element;
550
if ( curNode.NodeType ==
XmlNodeType
.Element )
578
XmlNodeType
nt = curNode.NodeType;
579
if ( nt ==
XmlNodeType
.Element )
581
else if ( nt ==
XmlNodeType
.Attribute )
583
else if ( nt ==
XmlNodeType
.XmlDeclaration && namespaceURI.Length == 0 ) {
588
} else if ( nt ==
XmlNodeType
.DocumentType && namespaceURI.Length == 0 ) {
602
case
XmlNodeType
.Element:
611
case
XmlNodeType
.Attribute:
619
case
XmlNodeType
.XmlDeclaration :
620
case
XmlNodeType
.DocumentType :
630
XmlNodeType
nt = curNode.NodeType;
631
if ( nt ==
XmlNodeType
.Attribute ) {
638
} else if ( nt ==
XmlNodeType
.Element ) {
646
} else if ( nt ==
XmlNodeType
.XmlDeclaration ) {
656
} else if ( nt ==
XmlNodeType
.DocumentType ) {
704
if ( curNode.NodeType !=
XmlNodeType
.Attribute )
714
case
XmlNodeType
.Attribute :
721
case
XmlNodeType
.XmlDeclaration :
722
case
XmlNodeType
.DocumentType : {
755
if ( node.NodeType ==
XmlNodeType
.Element ) {
764
else if ( node.NodeType ==
XmlNodeType
.Attribute ) {
807
if ( node.NodeType ==
XmlNodeType
.Element ) {
829
else if ( node.NodeType ==
XmlNodeType
.Attribute ) {
846
if ( node.NodeType ==
XmlNodeType
.Element ) {
869
else if ( node.NodeType ==
XmlNodeType
.Attribute ) {
887
public bool ReadAttributeValue( ref int level, ref bool bResolveEntity, ref
XmlNodeType
nt ) {
889
Debug.Assert( curNode.NodeType ==
XmlNodeType
.XmlDeclaration || curNode.NodeType ==
XmlNodeType
.DocumentType );
893
nt =
XmlNodeType
.Text;
898
if( curNode.NodeType ==
XmlNodeType
.Attribute ) {
910
if ( curNode.NodeType ==
XmlNodeType
.EntityReference && bResolveEntity ) {
924
if ( parentNode != null && parentNode.NodeType ==
XmlNodeType
.EntityReference ) {
927
nt =
XmlNodeType
.EndEntity;
956
XmlNodeType
nodeType; // nodeType of the node that the reader is currently positioned on
978
nodeType =
XmlNodeType
.None;
993
public override
XmlNodeType
NodeType {
994
get { return ( IsInReadingStates() )? nodeType :
XmlNodeType
.None; }
1125
if ( !IsInReadingStates() || nodeType ==
XmlNodeType
.EndElement )
1234
if ( !IsInReadingStates() || nodeType ==
XmlNodeType
.EndElement )
1282
if ( ( readerNav.NodeType ==
XmlNodeType
.Document ) || ( readerNav.NodeType ==
XmlNodeType
.DocumentFragment ) ) {
1312
nodeType =
XmlNodeType
.None;
1319
nodeType =
XmlNodeType
.None;
1324
XmlNodeType
nt = readerNav.NodeType;
1328
&& ( nodeType !=
XmlNodeType
.EndElement )
1329
&& ( nodeType !=
XmlNodeType
.EndEntity )
1330
&& ( nt ==
XmlNodeType
.Element || ( nt ==
XmlNodeType
.EntityReference && bResolveEntity ) ||
1331
( ( ( readerNav.NodeType ==
XmlNodeType
.Document ) || ( readerNav.NodeType ==
XmlNodeType
.DocumentFragment ) ) && readState == ReadState.Initial) );
1340
} else if ( readerNav.NodeType ==
XmlNodeType
.Element
1342
nodeType =
XmlNodeType
.EndElement;
1345
else if (readerNav.NodeType ==
XmlNodeType
.EntityReference && bResolveEntity) {
1347
nodeType =
XmlNodeType
.EndEntity;
1353
if ( readerNav.NodeType ==
XmlNodeType
.EntityReference && bResolveEntity ) {
1362
nodeType =
XmlNodeType
.EndEntity;
1374
nodeType =
XmlNodeType
.None;
1380
&& nodeType !=
XmlNodeType
.EndElement
1381
&& readerNav.NodeType ==
XmlNodeType
.Element
1383
nodeType =
XmlNodeType
.EndElement;
1409
if ( readerNav.NodeType ==
XmlNodeType
.Element ) {
1411
nodeType =
XmlNodeType
.EndElement;
1413
} else if ( readerNav.NodeType ==
XmlNodeType
.EntityReference ) {
1416
nodeType =
XmlNodeType
.EndEntity;
1457
if ((this.NodeType ==
XmlNodeType
.EntityReference) && bResolveEntity) {
1499
if ( !IsInReadingStates() || ( nodeType !=
XmlNodeType
.EntityReference ) )
System\Xml\Dom\XmlNotation.cs (2)
35
public override
XmlNodeType
NodeType {
36
get { return
XmlNodeType
.Notation;}
System\Xml\Dom\XmlProcessingInstruction.cs (2)
74
public override
XmlNodeType
NodeType {
75
get { return
XmlNodeType
.ProcessingInstruction;}
System\Xml\Dom\XmlSignificantWhiteSpace.cs (7)
37
public override
XmlNodeType
NodeType {
39
return
XmlNodeType
.SignificantWhitespace;
46
case
XmlNodeType
.Document:
48
case
XmlNodeType
.Text:
49
case
XmlNodeType
.CDATA:
50
case
XmlNodeType
.Whitespace:
51
case
XmlNodeType
.SignificantWhitespace:
System\Xml\Dom\XmlText.cs (8)
38
public override
XmlNodeType
NodeType {
40
return
XmlNodeType
.Text;
47
case
XmlNodeType
.Document:
49
case
XmlNodeType
.Text:
50
case
XmlNodeType
.CDATA:
51
case
XmlNodeType
.Whitespace:
52
case
XmlNodeType
.SignificantWhitespace:
78
if ( parent != null && parent.NodeType ==
XmlNodeType
.Attribute ) {
System\Xml\Dom\XmlWhitespace.cs (7)
37
public override
XmlNodeType
NodeType {
39
return
XmlNodeType
.Whitespace;
46
case
XmlNodeType
.Document:
48
case
XmlNodeType
.Text:
49
case
XmlNodeType
.CDATA:
50
case
XmlNodeType
.Whitespace:
51
case
XmlNodeType
.SignificantWhitespace:
System\Xml\Schema\AutoValidator.cs (1)
64
if (reader.NodeType ==
XmlNodeType
.Element) {
System\Xml\Schema\DtdValidator.cs (12)
55
case
XmlNodeType
.Element:
58
goto case
XmlNodeType
.EndElement;
61
case
XmlNodeType
.Whitespace:
62
case
XmlNodeType
.SignificantWhitespace:
67
case
XmlNodeType
.ProcessingInstruction:
68
case
XmlNodeType
.Comment:
72
case
XmlNodeType
.Text: // text inside a node
73
case
XmlNodeType
.CDATA: // <![CDATA[...]]>
76
case
XmlNodeType
.EntityReference:
81
case
XmlNodeType
.EndElement:
88
reader.NodeType ==
XmlNodeType
.Element) {
129
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element);
System\Xml\Schema\Inference\Infer.cs (32)
211
while (xtr.NodeType !=
XmlNodeType
.Element && xtr.Read()) ;
214
if (xtr.NodeType ==
XmlNodeType
.Element)
710
if (xtr.NodeType ==
XmlNodeType
.Whitespace)
714
if (xtr.NodeType ==
XmlNodeType
.EntityReference)
718
} while( (!xtr.EOF) && (xtr.NodeType !=
XmlNodeType
.EndElement) && (xtr.NodeType !=
XmlNodeType
.CDATA)&&(xtr.NodeType !=
XmlNodeType
.Element)&&(xtr.NodeType !=
XmlNodeType
.Text) );
720
if (xtr.NodeType ==
XmlNodeType
.EndElement)
784
while (!xtr.EOF && (xtr.NodeType !=
XmlNodeType
.EndElement))
788
if ((xtr.NodeType ==
XmlNodeType
.Text) || (xtr.NodeType ==
XmlNodeType
.CDATA) ) //node can be simple type, complex with simple content or complex with mixed content
798
do{ xtr.Read();} while( (!xtr.EOF) && ((xtr.NodeType ==
XmlNodeType
.CDATA)||(xtr.NodeType ==
XmlNodeType
.Text) || (xtr.NodeType ==
XmlNodeType
.Comment) || (xtr.NodeType ==
XmlNodeType
.ProcessingInstruction) || (xtr.NodeType ==
XmlNodeType
.Whitespace) || (xtr.NodeType ==
XmlNodeType
.SignificantWhitespace) || (xtr.NodeType ==
XmlNodeType
.XmlDeclaration)));
800
if (xtr.NodeType ==
XmlNodeType
.EndElement)
807
if ((xtr.NodeType ==
XmlNodeType
.Text) && (iChildNumber==1))
838
if (xtr.NodeType ==
XmlNodeType
.Text)
870
if (xtr.NodeType ==
XmlNodeType
.Text)
880
else if (xtr.NodeType ==
XmlNodeType
.Text)
905
else if (xtr.NodeType ==
XmlNodeType
.Element)
961
else if (xtr.NodeType ==
XmlNodeType
.Text)
969
if (xtr.NodeType ==
XmlNodeType
.EntityReference)
982
} while( (!xtr.EOF) && (xtr.NodeType !=
XmlNodeType
.EndElement) && (xtr.NodeType !=
XmlNodeType
.CDATA)&&(xtr.NodeType !=
XmlNodeType
.Element)&&(xtr.NodeType !=
XmlNodeType
.Text));
1216
Debug.Assert(xtr.NodeType ==
XmlNodeType
.Attribute);
System\Xml\Schema\Parser.cs (25)
72
while (reader.NodeType !=
XmlNodeType
.Element && reader.Read()) {}
161
else if (reader.NodeType ==
XmlNodeType
.Element) {
197
else if (reader.NodeType ==
XmlNodeType
.Text) { //Check for whitespace
202
else if (reader.NodeType ==
XmlNodeType
.EntityReference ||
203
reader.NodeType ==
XmlNodeType
.SignificantWhitespace ||
204
reader.NodeType ==
XmlNodeType
.CDATA) {
207
else if (reader.NodeType ==
XmlNodeType
.EndElement) {
239
case
XmlNodeType
.Element:
251
case
XmlNodeType
.Text:
255
case
XmlNodeType
.SignificantWhitespace:
259
case
XmlNodeType
.CDATA:
263
case
XmlNodeType
.EntityReference:
267
case
XmlNodeType
.Comment:
271
case
XmlNodeType
.ProcessingInstruction:
275
case
XmlNodeType
.EndEntity:
278
case
XmlNodeType
.Whitespace:
281
case
XmlNodeType
.EndElement:
295
Debug.Assert( reader.NodeType ==
XmlNodeType
.Element );
364
Debug.Assert(reader.NodeType ==
XmlNodeType
.Attribute);
372
case
XmlNodeType
.Text:
375
case
XmlNodeType
.EntityReference:
387
Debug.Assert(reader.NodeType ==
XmlNodeType
.EntityReference);
397
case
XmlNodeType
.Text:
400
case
XmlNodeType
.EndEntity:
405
case
XmlNodeType
.EntityReference:
System\Xml\Schema\ParserAsync.cs (1)
32
while (reader.NodeType !=
XmlNodeType
.Element && await reader.ReadAsync().ConfigureAwait(false)) {}
System\Xml\Schema\XdrValidator.cs (7)
60
case
XmlNodeType
.Element:
63
goto case
XmlNodeType
.EndElement;
66
case
XmlNodeType
.Whitespace:
69
case
XmlNodeType
.Text: // text inside a node
70
case
XmlNodeType
.CDATA: // <![CDATA[...]]>
71
case
XmlNodeType
.SignificantWhitespace:
74
case
XmlNodeType
.EndElement:
System\Xml\Schema\XmlSchemaValidator.cs (1)
915
attrData.NodeType =
XmlNodeType
.Attribute;
System\Xml\Schema\XsdValidator.cs (7)
88
case
XmlNodeType
.Element:
91
goto case
XmlNodeType
.EndElement;
94
case
XmlNodeType
.Whitespace:
97
case
XmlNodeType
.Text: // text inside a node
98
case
XmlNodeType
.CDATA: // <![CDATA[...]]>
99
case
XmlNodeType
.SignificantWhitespace:
102
case
XmlNodeType
.EndElement:
System\Xml\Serialization\_Events.cs (1)
176
public
XmlNodeType
NodeType {
System\Xml\Serialization\PrimitiveXmlSerializers.cs (19)
197
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
219
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
238
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
257
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
276
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
295
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
314
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
333
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
352
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
371
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
390
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
409
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
428
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
447
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
466
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
488
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
508
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element)
539
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
558
if (Reader.NodeType == System.Xml.
XmlNodeType
.Element) {
System\Xml\Serialization\XmlCountingReader.cs (4)
34
public override
XmlNodeType
NodeType { get { return innerReader.NodeType; } }
81
public override
XmlNodeType
MoveToContent() { return innerReader.MoveToContent(); }
98
if (innerReader.NodeType !=
XmlNodeType
.Attribute)
104
if (innerReader.NodeType !=
XmlNodeType
.Attribute)
System\Xml\Serialization\XmlSerializationReader.cs (37)
808
while (r.NodeType !=
XmlNodeType
.EndElement)
885
if (r.NodeType !=
XmlNodeType
.EndElement)
889
while (r.NodeType !=
XmlNodeType
.EndElement)
1172
if (r.NodeType ==
XmlNodeType
.None || r.NodeType ==
XmlNodeType
.Whitespace) {
1176
if (r.NodeType ==
XmlNodeType
.EndElement)
1181
else if (r.NodeType ==
XmlNodeType
.Attribute && events.OnUnknownAttribute == null) {
1184
else if (r.NodeType ==
XmlNodeType
.Element && events.OnUnknownElement == null) {
1196
if (unknownNode.NodeType !=
XmlNodeType
.None && unknownNode.NodeType !=
XmlNodeType
.Whitespace && events.OnUnknownNode != null) {
1202
if (unknownNode.NodeType ==
XmlNodeType
.Attribute) {
1205
else if (unknownNode.NodeType ==
XmlNodeType
.Element) {
1231
case
XmlNodeType
.Element:
1233
case
XmlNodeType
.EndElement:
1235
case
XmlNodeType
.Text:
1237
case
XmlNodeType
.CDATA:
1239
case
XmlNodeType
.Comment:
1241
case
XmlNodeType
.ProcessingInstruction:
1366
while (r.NodeType ==
XmlNodeType
.Whitespace) r.Skip();
1367
if (r.NodeType ==
XmlNodeType
.None) r.Skip();
1368
if (r.NodeType ==
XmlNodeType
.EndElement && r.LocalName == name && r.NamespaceURI == ns) {
1596
while (r.NodeType !=
XmlNodeType
.EndElement) {
1613
while (r.NodeType !=
XmlNodeType
.EndElement) {
1681
while (r.NodeType !=
XmlNodeType
.EndElement && r.NodeType !=
XmlNodeType
.None) {
1765
while (r.NodeType ==
XmlNodeType
.Whitespace) r.Skip();
1766
if (r.NodeType ==
XmlNodeType
.None) r.Skip();
1781
if(Reader.NodeType ==
XmlNodeType
.Attribute){
1838
while (Reader.NodeType != System.Xml.
XmlNodeType
.EndElement) {
3736
Writer.Write(typeof(
XmlNodeType
).FullName);
3763
Writer.Write(typeof(
XmlNodeType
).FullName);
3766
Writer.Write(typeof(
XmlNodeType
).FullName);
3769
Writer.Write(typeof(
XmlNodeType
).FullName);
3772
Writer.Write(typeof(
XmlNodeType
).FullName);
4539
Writer.Write(typeof(
XmlNodeType
).FullName);
4541
Writer.Write(typeof(
XmlNodeType
).FullName);
4575
Writer.Write(typeof(
XmlNodeType
).FullName);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
2334
ilg.Ldc(
XmlNodeType
.Text);
2340
ilg.Ldc(
XmlNodeType
.CDATA);
2346
ilg.Ldc(
XmlNodeType
.Whitespace);
2352
ilg.Ldc(
XmlNodeType
.SignificantWhitespace);
System\Xml\XPath\XPathDocument.cs (14)
183
case
XmlNodeType
.Element: {
215
case
XmlNodeType
.EndElement:
219
case
XmlNodeType
.Text:
220
case
XmlNodeType
.CDATA:
224
case
XmlNodeType
.SignificantWhitespace:
229
goto case
XmlNodeType
.Whitespace;
232
case
XmlNodeType
.Whitespace:
244
case
XmlNodeType
.Comment:
248
case
XmlNodeType
.ProcessingInstruction:
252
case
XmlNodeType
.EntityReference:
256
case
XmlNodeType
.DocumentType:
263
case
XmlNodeType
.EndEntity:
264
case
XmlNodeType
.None:
265
case
XmlNodeType
.XmlDeclaration:
System\Xml\XPath\XPathNavigator.cs (15)
1774
XmlTextReader reader = new XmlTextReader(xml,
XmlNodeType
.Element, context);
1797
case
XmlNodeType
.Element:
1829
case
XmlNodeType
.EndElement:
1834
case
XmlNodeType
.Text:
1835
case
XmlNodeType
.CDATA:
1838
case
XmlNodeType
.SignificantWhitespace:
1839
case
XmlNodeType
.Whitespace:
1843
case
XmlNodeType
.Comment:
1846
case
XmlNodeType
.ProcessingInstruction:
1849
case
XmlNodeType
.EntityReference:
1852
case
XmlNodeType
.EndEntity:
1853
case
XmlNodeType
.None:
1854
case
XmlNodeType
.DocumentType:
1855
case
XmlNodeType
.XmlDeclaration:
1857
case
XmlNodeType
.Attribute:
System\Xml\XPath\XPathNavigatorReader.cs (36)
37
private
XmlNodeType
nodeType;
49
internal static
XmlNodeType
[] convertFromXPathNodeType = {
50
XmlNodeType
.Document, // XPathNodeType.Root
51
XmlNodeType
.Element, // XPathNodeType.Element
52
XmlNodeType
.Attribute, // XPathNodeType.Attribute
53
XmlNodeType
.Attribute, // XPathNodeType.Namespace
54
XmlNodeType
.Text, // XPathNodeType.Text
55
XmlNodeType
.SignificantWhitespace, // XPathNodeType.SignificantWhitespace
56
XmlNodeType
.Whitespace, // XPathNodeType.Whitespace
57
XmlNodeType
.ProcessingInstruction, // XPathNodeType.ProcessingInstruction
58
XmlNodeType
.Comment, // XPathNodeType.Comment
59
XmlNodeType
.None // XPathNodeType.All
66
internal static
XmlNodeType
ToXmlNodeType( XPathNodeType typ ) {
166
if ( this.nodeType ==
XmlNodeType
.Text )
176
public override
XmlNodeType
NodeType {
186
if (this.NodeType ==
XmlNodeType
.Text)
198
if (this.NodeType ==
XmlNodeType
.Text)
210
if (this.NodeType ==
XmlNodeType
.Text)
260
if( ( this.nodeType !=
XmlNodeType
.Element )
261
&& ( this.nodeType !=
XmlNodeType
.Document )
262
&& ( this.nodeType !=
XmlNodeType
.EndElement )
263
&& ( this.nodeType !=
XmlNodeType
.None ) )
271
if( ( this.nodeType !=
XmlNodeType
.Element )
272
&& ( this.nodeType !=
XmlNodeType
.Document )
273
&& ( this.nodeType !=
XmlNodeType
.EndElement )
274
&& ( this.nodeType !=
XmlNodeType
.None ) )
304
if (this.nodeType ==
XmlNodeType
.Element)
333
this.nodeType =
XmlNodeType
.Attribute;
593
this.nodeType =
XmlNodeType
.Attribute;
666
this.nodeType =
XmlNodeType
.Element;
718
this.nodeType =
XmlNodeType
.Text;
868
else if ( this.nodeType ==
XmlNodeType
.Element
870
this.nodeType =
XmlNodeType
.EndElement;
888
this.nodeType =
XmlNodeType
.EndElement;
923
this.nodeType =
XmlNodeType
.None;
933
this.nodeType =
XmlNodeType
.None;
System.Xml.Linq (129)
System\Xml\Linq\XLinq.cs (94)
967
public abstract
XmlNodeType
NodeType { get; }
1833
case
XmlNodeType
.Text:
1834
case
XmlNodeType
.SignificantWhitespace:
1835
case
XmlNodeType
.Whitespace:
1837
case
XmlNodeType
.CDATA:
1839
case
XmlNodeType
.Comment:
1841
case
XmlNodeType
.DocumentType:
1843
case
XmlNodeType
.Element:
1845
case
XmlNodeType
.ProcessingInstruction:
2208
public override
XmlNodeType
NodeType {
2210
return
XmlNodeType
.Text;
2287
public override
XmlNodeType
NodeType {
2289
return
XmlNodeType
.CDATA;
2872
if (n.NodeType !=
XmlNodeType
.Text) return null;
2881
while (n != null && n.NodeType ==
XmlNodeType
.Text) {
3035
case
XmlNodeType
.Element:
3048
case
XmlNodeType
.EndElement:
3055
case
XmlNodeType
.Text:
3056
case
XmlNodeType
.SignificantWhitespace:
3057
case
XmlNodeType
.Whitespace:
3060
case
XmlNodeType
.CDATA:
3063
case
XmlNodeType
.Comment:
3066
case
XmlNodeType
.ProcessingInstruction:
3069
case
XmlNodeType
.DocumentType:
3076
case
XmlNodeType
.EntityReference:
3080
case
XmlNodeType
.EndEntity:
3103
case
XmlNodeType
.Element: {
3130
case
XmlNodeType
.EndElement: {
3148
case
XmlNodeType
.Text:
3149
case
XmlNodeType
.SignificantWhitespace:
3150
case
XmlNodeType
.Whitespace:
3159
case
XmlNodeType
.CDATA:
3162
case
XmlNodeType
.Comment:
3165
case
XmlNodeType
.ProcessingInstruction:
3168
case
XmlNodeType
.DocumentType:
3175
case
XmlNodeType
.EntityReference:
3179
case
XmlNodeType
.EndEntity:
3607
public override
XmlNodeType
NodeType {
3609
return
XmlNodeType
.Element;
4031
if (reader.MoveToContent() !=
XmlNodeType
.Element) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedNodeType,
XmlNodeType
.Element, reader.NodeType));
4958
if (reader.MoveToContent() !=
XmlNodeType
.Element) throw new InvalidOperationException(Res.GetString(Res.InvalidOperation_ExpectedNodeType,
XmlNodeType
.Element, reader.NodeType));
5134
if (node is XDocument) throw new ArgumentException(Res.GetString(Res.Argument_AddNode,
XmlNodeType
.Document));
5135
if (node is XDocumentType) throw new ArgumentException(Res.GetString(Res.Argument_AddNode,
XmlNodeType
.DocumentType));
5505
public override
XmlNodeType
NodeType {
5507
return
XmlNodeType
.Document;
5728
if (reader.NodeType ==
XmlNodeType
.XmlDeclaration) {
5997
case
XmlNodeType
.Text:
6000
case
XmlNodeType
.Element:
6001
ValidateDocument(previous,
XmlNodeType
.DocumentType,
XmlNodeType
.None);
6003
case
XmlNodeType
.DocumentType:
6004
ValidateDocument(previous,
XmlNodeType
.None,
XmlNodeType
.Element);
6006
case
XmlNodeType
.CDATA:
6007
throw new ArgumentException(Res.GetString(Res.Argument_AddNode,
XmlNodeType
.CDATA));
6008
case
XmlNodeType
.Document:
6009
throw new ArgumentException(Res.GetString(Res.Argument_AddNode,
XmlNodeType
.Document));
6013
void ValidateDocument(XNode previous,
XmlNodeType
allowBefore,
XmlNodeType
allowAfter) {
6019
XmlNodeType
nt = n.NodeType;
6020
if (nt ==
XmlNodeType
.Element || nt ==
XmlNodeType
.DocumentType) {
6022
allowBefore =
XmlNodeType
.None;
6079
public override
XmlNodeType
NodeType {
6081
return
XmlNodeType
.Comment;
6196
public override
XmlNodeType
NodeType {
6198
return
XmlNodeType
.ProcessingInstruction;
6455
public override
XmlNodeType
NodeType {
6457
return
XmlNodeType
.DocumentType;
6630
public override
XmlNodeType
NodeType {
6632
return
XmlNodeType
.Attribute;
8187
case
XmlNodeType
.Attribute:
8188
case
XmlNodeType
.Text:
8189
case
XmlNodeType
.CDATA:
8190
case
XmlNodeType
.Comment:
8191
case
XmlNodeType
.ProcessingInstruction:
8192
case
XmlNodeType
.DocumentType:
8276
public override
XmlNodeType
NodeType {
8279
return
XmlNodeType
.None;
8284
return
XmlNodeType
.EndElement;
8286
XmlNodeType
nt = o.NodeType;
8287
if (nt !=
XmlNodeType
.Text) {
8291
return
XmlNodeType
.Whitespace;
8293
return
XmlNodeType
.Text;
8296
return
XmlNodeType
.Whitespace;
8298
return
XmlNodeType
.Text;
8348
case
XmlNodeType
.Attribute:
8350
case
XmlNodeType
.Text:
8351
case
XmlNodeType
.CDATA:
8353
case
XmlNodeType
.Comment:
8355
case
XmlNodeType
.ProcessingInstruction:
8357
case
XmlNodeType
.DocumentType:
System\Xml\Linq\XNodeNavigator.cs (30)
13
(1 << (int)
XmlNodeType
.Element) |
14
(1 << (int)
XmlNodeType
.ProcessingInstruction) |
15
(1 << (int)
XmlNodeType
.Comment);
18
(1 << (int)
XmlNodeType
.Element), // Element
21
(1 << (int)
XmlNodeType
.CDATA) |
22
(1 << (int)
XmlNodeType
.Text), // Text
25
(1 << (int)
XmlNodeType
.ProcessingInstruction), // ProcessingInstruction
26
(1 << (int)
XmlNodeType
.Comment), // Comment
27
(1 << (int)
XmlNodeType
.Element) |
28
(1 << (int)
XmlNodeType
.CDATA) |
29
(1 << (int)
XmlNodeType
.Text) |
30
(1 << (int)
XmlNodeType
.ProcessingInstruction) |
31
(1 << (int)
XmlNodeType
.Comment) // All
34
(1 << (int)
XmlNodeType
.CDATA) |
35
(1 << (int)
XmlNodeType
.Text);
180
case
XmlNodeType
.Element:
182
case
XmlNodeType
.Attribute:
187
case
XmlNodeType
.Document:
189
case
XmlNodeType
.Comment:
191
case
XmlNodeType
.ProcessingInstruction:
243
case
XmlNodeType
.Element:
245
case
XmlNodeType
.Attribute:
247
case
XmlNodeType
.Document:
250
case
XmlNodeType
.Text:
251
case
XmlNodeType
.CDATA:
253
case
XmlNodeType
.Comment:
255
case
XmlNodeType
.ProcessingInstruction:
354
if (((1 << (int)
XmlNodeType
.Text) & mask) != 0) {
829
if (node is XDocumentType) throw new ArgumentException(System.Xml.Linq.Res.GetString(System.Xml.Linq.Res.Argument_CreateNavigator,
XmlNodeType
.DocumentType));
832
if (text.parent is XDocument) throw new ArgumentException(System.Xml.Linq.Res.GetString(System.Xml.Linq.Res.Argument_CreateNavigator,
XmlNodeType
.Whitespace));
System\Xml\Linq\XNodeValidator.cs (5)
39
XmlNodeType
nt = source.NodeType;
41
case
XmlNodeType
.Document:
46
case
XmlNodeType
.Element:
48
case
XmlNodeType
.Attribute:
68
if (nt ==
XmlNodeType
.Attribute) {
WindowsBase (45)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (5)
312
if (reader.NodeType ==
XmlNodeType
.Element
333
if (reader.NodeType ==
XmlNodeType
.None)
336
if (reader.NodeType ==
XmlNodeType
.Element
362
if (!(String.CompareOrdinal(RelationshipsTagName,reader.LocalName) == 0 && (reader.NodeType ==
XmlNodeType
.EndElement)))
434
if (reader.NodeType ==
XmlNodeType
.EndElement && String.CompareOrdinal(RelationshipTagName, reader.LocalName) == 0)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (6)
580
if ( reader.MoveToContent() !=
XmlNodeType
.Element
601
while (reader.Read() && reader.MoveToContent() !=
XmlNodeType
.None)
604
if (reader.NodeType ==
XmlNodeType
.EndElement)
608
if (reader.NodeType !=
XmlNodeType
.Element)
724
if (reader.MoveToContent() ==
XmlNodeType
.EndElement)
728
if (reader.NodeType !=
XmlNodeType
.Text)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (5)
693
if (nodeList[0].NodeType !=
XmlNodeType
.XmlDeclaration)
700
if ((node.NodeType !=
XmlNodeType
.Element) ||
1078
while (reader.Read() && (reader.NodeType ==
XmlNodeType
.Element))
1080
if (reader.MoveToContent() ==
XmlNodeType
.Element
1178
xDoc.AppendChild(xDoc.CreateNode(
XmlNodeType
.Element, "root", "namespace")); // dummy root
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (6)
130
while (reader.Read() && (reader.MoveToContent() ==
XmlNodeType
.Element))
202
if (reader.HasAttributes || (reader.Read() && reader.MoveToContent() !=
XmlNodeType
.Text))
260
while (reader.Read() && (reader.MoveToContent() ==
XmlNodeType
.Element))
337
while (reader.Read() && (reader.MoveToContent() ==
XmlNodeType
.Element))
426
while (reader.Read() && (reader.MoveToContent() ==
XmlNodeType
.Element)
498
XmlNode manifest = xDoc.CreateNode(
XmlNodeType
.Element,
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (11)
176
if (reader.MoveToContent() ==
XmlNodeType
.Element
207
&& (reader.NodeType ==
XmlNodeType
.EndElement)))
213
&& (reader.NodeType ==
XmlNodeType
.EndElement)))
259
&& reader.MoveToContent() ==
XmlNodeType
.Element
268
&& reader.MoveToContent() ==
XmlNodeType
.Element
277
&& reader.MoveToContent() ==
XmlNodeType
.Text
285
Debug.Assert(reader.NodeType ==
XmlNodeType
.EndElement);
298
&& reader.MoveToContent() ==
XmlNodeType
.Text
306
Debug.Assert(reader.NodeType ==
XmlNodeType
.EndElement);
321
&& (reader.NodeType ==
XmlNodeType
.EndElement))
327
&& reader.MoveToContent() ==
XmlNodeType
.EndElement
Base\System\IO\Packaging\ZipPackage.cs (6)
1139
if ((reader.NodeType ==
XmlNodeType
.Element)
1158
if (reader.NodeType ==
XmlNodeType
.None)
1163
if (reader.NodeType ==
XmlNodeType
.Element
1171
if (reader.NodeType ==
XmlNodeType
.Element
1179
if (reader.NodeType ==
XmlNodeType
.EndElement && reader.Depth == 0 && String.CompareOrdinal(reader.Name, TypesTagName) == 0)
1397
if (reader.NodeType ==
XmlNodeType
.EndElement && String.CompareOrdinal(elementName, reader.LocalName) == 0)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (3)
189
case
XmlNodeType
.Element:
198
case
XmlNodeType
.EndElement:
761
_inAttribute = (Reader.NodeType ==
XmlNodeType
.Attribute);
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
57
public override
XmlNodeType
NodeType { get { return _reader.NodeType; } }
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (2)
72
if (reader.Read() && reader.NodeType ==
XmlNodeType
.XmlDeclaration && reader.Depth == 0)
417
Debug.Assert(reader.NodeType ==
XmlNodeType
.Element, "XmlReader should be positioned at an Element");