665 references to Element
Microsoft.Build (10)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (2)
78if (reader.NodeType == XmlNodeType.Element && reader.Name == "SdkResolver") 112case XmlNodeType.Element:
Construction\Solution\ProjectInSolution.cs (1)
318if (childNode.NodeType == XmlNodeType.Element)
Evaluation\Preprocessor.cs (5)
235child.NodeType == XmlNodeType.Element && 275if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.import, child.Name, StringComparison.Ordinal)) 285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 333if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.importGroup, child.Name, StringComparison.Ordinal)) 350if (clone.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal) && clone.Attributes?[XMakeAttributes.sdk] != null)
SolutionConfiguration.cs (1)
74if (dependencyNode.NodeType != XmlNodeType.Element)
Xml\ProjectXmlUtilities.XmlElementChildIterator.cs (1)
87case XmlNodeType.Element:
Microsoft.Build.Tasks.Core (20)
AppConfig\AppConfig.cs (1)
84if (reader.NodeType == XmlNodeType.Element && StringEquals(reader.Name, "runtime"))
AppConfig\DependentAssembly.cs (2)
60if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "assemblyIdentity")) 104if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "bindingRedirect"))
AppConfig\RuntimeSection.cs (1)
30if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "dependentAssembly"))
BootstrapperUtil\BootstrapperBuilder.cs (1)
1238if (nextNode.NodeType == XmlNodeType.Element)
CodeTaskFactory.cs (1)
539case XmlNodeType.Element:
GenerateResource.cs (3)
985if (reader.NodeType == XmlNodeType.Element) 1775if (reader.NodeType == XmlNodeType.Element) 1973if (reader.NodeType == XmlNodeType.Element)
ManifestUtil\ManifestFormatter.cs (1)
40case XmlNodeType.Element:
ManifestUtil\ManifestReader.cs (1)
236} while (r.NodeType != XmlNodeType.Element);
ManifestUtil\SecurityUtil.cs (1)
428if (xn.NodeType == XmlNodeType.Element)
ManifestUtil\XmlUtil.cs (1)
49if (node.NodeType == XmlNodeType.Element)
RedistList.cs (3)
669if (reader.NodeType == XmlNodeType.Element) 734if (reader.NodeType == XmlNodeType.Element) 788if (reader.NodeType == XmlNodeType.Element)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
331case XmlNodeType.Element:
SolutionConfiguration.cs (1)
74if (dependencyNode.NodeType != XmlNodeType.Element)
XamlTaskFactory\RelationsParser.cs (2)
354if (node.NodeType == XmlNodeType.Element) 435if (child.NodeType == XmlNodeType.Element)
Microsoft.Build.Utilities.Core (3)
PlatformManifest.cs (1)
111if (childNode.NodeType == XmlNodeType.Element &&
SDKManifest.cs (1)
330if (childNode.NodeType == XmlNodeType.Element &&
ToolLocationHelper.cs (1)
3137if (reader.NodeType == XmlNodeType.Element)
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
43if (copyAttributeAnnotations && node.NodeType == XmlNodeType.Element)
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
177if (node.NodeType == XmlNodeType.Element) 213if (container.NodeType == XmlNodeType.Element && originatingSyntax != null)
Microsoft.CodeAnalysis.Features (1)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
318if (node.NodeType != XmlNodeType.Element)
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
272If node.NodeType = XmlNodeType.Element Then 301If container.NodeType = XmlNodeType.Element AndAlso originatingSyntax IsNot Nothing Then
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\ISymbolExtensions.cs (2)
299if (node.NodeType == XmlNodeType.Element) 590if (copyAttributeAnnotations && node.NodeType == XmlNodeType.Element)
Shared\Utilities\DocumentationComment.cs (1)
230if (reader.NodeType == XmlNodeType.Element)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
43if (copyAttributeAnnotations && node.NodeType == XmlNodeType.Element)
Microsoft.Extensions.Configuration.Xml (3)
XmlStreamConfigurationProvider.cs (3)
62case XmlNodeType.Element: 135if (preNodeType == XmlNodeType.Element) 173if (preNodeType == XmlNodeType.Element && reader.IsEmptyElement)
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestParser.cs (1)
83if (element.NodeType != XmlNodeType.Element)
Microsoft.Maui.Controls.Build.Tasks (3)
XamlTask.cs (3)
52 if (reader.NodeType != XmlNodeType.Element) 80 while (reader.Read() && reader.NodeType != XmlNodeType.Element) 83 if (reader.NodeType != XmlNodeType.Element)
Microsoft.Maui.Controls.Xaml (8)
XamlLoader.cs (3)
72 if (reader.NodeType != XmlNodeType.Element) 114 if (reader.NodeType != XmlNodeType.Element) 155 if (reader.NodeType != XmlNodeType.Element)
XamlParser.cs (5)
54 Debug.Assert(reader.NodeType == XmlNodeType.Element); 69 case XmlNodeType.Element: 139 Debug.Assert(reader.NodeType == XmlNodeType.Element); 158 case XmlNodeType.Element: 206 Debug.Assert(reader.NodeType == XmlNodeType.Element);
Microsoft.Maui.Graphics (1)
Text\XmlAttributedTextReader.cs (1)
48 case XmlNodeType.Element:
PresentationBuildTasks (9)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
510case XmlNodeType.Element :
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
789case XmlNodeType.Element:
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
79multipleRoots ? XmlNodeType.Element : XmlNodeType.Document,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
384case XmlNodeType.Element: 1263case XmlNodeType.Element: 1986CompileBamlTag(XmlNodeType.Element, ref endTagHasBeenRead); 2133case XmlNodeType.Element: 3588case XmlNodeType.Element:
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
172case XmlNodeType.Element:
PresentationCore (6)
MS\Internal\FontFace\CompositeFontParser.cs (6)
292case XmlNodeType.Element: 403if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 416while (MoveToContent() == XmlNodeType.Element) 569if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace) 584while (MoveToContent() == XmlNodeType.Element) 817if (_reader.NodeType == XmlNodeType.Element && _reader.NamespaceURI == CompositeFontNamespace)
PresentationFramework (9)
MS\Internal\Globalization\BamlTreeMap.cs (1)
652if (node.NodeType == XmlNodeType.Element)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
488else if (node.NodeType == XmlNodeType.Element)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
406case XmlNodeType.Element:
System\Windows\Annotations\Annotation.cs (1)
324if (!(AnnotationXmlConstants.Elements.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
System\Windows\Annotations\AnnotationResource.cs (1)
185else if (XmlNodeType.Element == reader.NodeType)
System\Windows\Annotations\LocatorPartList.cs (1)
220if (XmlNodeType.Element != reader.NodeType)
System\Windows\Documents\FixedFindEngine.cs (1)
389case XmlNodeType.Element:
System\Windows\Documents\FixedSchema.cs (1)
210if ( (Reader.NodeType == XmlNodeType.Element) && !_rootXMLNSChecked )
System\Windows\Markup\BamlRecordReader.cs (1)
2024XmlNodeType.Element,
PresentationFramework-SystemXml (1)
SystemXmlExtension.cs (1)
149if (node.NodeType == XmlNodeType.Element)
ReachFramework (11)
Packaging\XpsFixedDocumentReaderWriter.cs (3)
954if (reader.NodeType == XmlNodeType.Element && reader.Name == XpsS0Markup.PageContent) 1073if (reader.NodeType == XmlNodeType.Element && 1093if( reader.NodeType == XmlNodeType.Element &&
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
553if (reader.NodeType == XmlNodeType.Element && reader.Name == XpsS0Markup.DocumentReference)
Packaging\XPSSignatureDefinition.cs (2)
414if( reader.NodeType != XmlNodeType.Element || 432case XmlNodeType.Element:
PrintConfig\PrtCap_Reader.cs (2)
48if ((_xmlReader.MoveToContent() != XmlNodeType.Element) || 135if ((_xmlReader.NodeType != XmlNodeType.Element) ||
PrintConfig\PrtTicket_Editor.cs (3)
101if ((rootChild.NodeType != XmlNodeType.Element) || 249if ((child.NodeType != XmlNodeType.Element) || 313if ((child.NodeType != XmlNodeType.Element) ||
System.Configuration.ConfigurationManager (40)
System\Configuration\BaseConfigurationRecord.cs (4)
1757if ((xmlUtil.Reader.NodeType != XmlNodeType.Element) || (xmlUtil.Reader.Name != ConfigurationTag)) 2583if (t == XmlNodeType.Element) 2625if (xmlUtil.Reader.NodeType != XmlNodeType.Element) 3588if ((nodeType == XmlNodeType.Element) && (clone.Name == "EncryptedData"))
System\Configuration\ConfigurationElement.cs (1)
1503if (reader.NodeType == XmlNodeType.Element)
System\Configuration\ConfigurationSection.cs (1)
39if (!reader.Read() || (reader.NodeType != XmlNodeType.Element))
System\Configuration\DefaultSection.cs (1)
51if (!xmlReader.Read() || (xmlReader.NodeType != XmlNodeType.Element))
System\Configuration\DpapiProtectedConfigurationProvider.cs (2)
20if (encryptedNode.NodeType != XmlNodeType.Element || 107if (child.NodeType != XmlNodeType.Element)
System\Configuration\HandlerBase.cs (1)
151if (node.NodeType != XmlNodeType.Element)
System\Configuration\IgnoreSection.cs (1)
51if (!xmlReader.Read() || (xmlReader.NodeType != XmlNodeType.Element))
System\Configuration\MgmtConfigurationRecord.cs (11)
602reader = new XmlTextReader(xmlElement, XmlNodeType.Element, context); 606if (reader.NodeType != XmlNodeType.Element) 2183if ((xmlUtil.Reader.NodeType == XmlNodeType.Element) && utilWriter.IsLastLineBlank) 2209Debug.Assert((reader.NodeType == XmlNodeType.Element) && (reader.Name == ConfigurationTag), 2245if ((reader.NodeType == XmlNodeType.Element) && (reader.Name == ConfigSectionsTag)) 2312bool skipFirstIndent = (reader.Depth > 0) && (reader.NodeType == XmlNodeType.Element); 2386case XmlNodeType.Element: 2424if (reader.NodeType == XmlNodeType.Element) 2613if (reader.NodeType == XmlNodeType.Element) 2662if (reader.NodeType == XmlNodeType.Element) 3102if (reader.NodeType == XmlNodeType.Element)
System\Configuration\RuntimeConfigurationRecord.cs (1)
135if (xmlNode.NodeType == XmlNodeType.Element) CheckForLockAttributes(sectionName, child);
System\Configuration\XmlUtil.cs (17)
88case XmlNodeType.Element: 157if (Reader.MoveToContent() == XmlNodeType.Element) 174while (!Reader.EOF && (Reader.NodeType != XmlNodeType.Element)) 189if (Reader.NodeType == XmlNodeType.Element) return; 203while (!Reader.EOF && (Reader.NodeType != XmlNodeType.Element)) 364Debug.Assert(Reader.NodeType == XmlNodeType.Element, "Reader.NodeType == XmlNodeType.Element"); 372if (Reader.NodeType == XmlNodeType.Element) 427if (Reader.NodeType == XmlNodeType.Element) 452Debug.Assert(Reader.NodeType == XmlNodeType.Element, "_reader.NodeType == XmlNodeType.Element"); 493if (Reader.NodeType == XmlNodeType.Element) 507Debug.Assert(Reader.NodeType == XmlNodeType.Element, "_reader.NodeType== XmlNodeType.Element"); 565if (nodeType == XmlNodeType.Element) 831Debug.Assert(Reader.NodeType == XmlNodeType.Element, 866Debug.Assert(Reader.NodeType == XmlNodeType.Element, "_reader.NodeType == NodeType.Element"); 975XmlTextReader reader = new XmlTextReader(xmlElement, XmlNodeType.Element, context); 1004case XmlNodeType.Element: 1043case XmlNodeType.Element:
System.Data.Common (64)
System\Data\Common\ObjectStorage.cs (1)
430if (type == typeof(string) && xmlReader.NodeType == XmlNodeType.Element && xmlReader.IsEmptyElement)
System\Data\DataSet.cs (15)
202if (reader.NodeType == XmlNodeType.Element) 1590if (reader.NodeType == XmlNodeType.Element) 1689if (reader.NodeType == XmlNodeType.Element) 1696if (reader.NodeType == XmlNodeType.Element) 1784while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 1788return (reader.NodeType == XmlNodeType.Element); 1793while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element) 2113if (reader.NodeType == XmlNodeType.Element) 2118if (reader.NodeType == XmlNodeType.Element) 2220if (reader.NodeType != XmlNodeType.Element) 2625if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 2633if (reader.NodeType == XmlNodeType.Element) 2845XmlTextReader reader = (mode == XmlReadMode.Fragment) ? new XmlTextReader(stream, XmlNodeType.Element, null) : new XmlTextReader(stream); 2860XmlTextReader xmlreader = (mode == XmlReadMode.Fragment) ? new XmlTextReader(reader.ReadToEnd(), XmlNodeType.Element, null) : new XmlTextReader(reader); 2874xr = new XmlTextReader(stream, XmlNodeType.Element, null);
System\Data\DataTable.cs (5)
5789if (reader.NodeType == XmlNodeType.Element) 6016if ((mode != XmlReadMode.Fragment) && (reader.NodeType == XmlNodeType.Element)) 6033if (reader.NodeType == XmlNodeType.Element) 6294while (!reader.EOF && reader.NodeType != XmlNodeType.EndElement && reader.NodeType != XmlNodeType.Element && reader.Depth > depth) 6298return (reader.NodeType == XmlNodeType.Element);
System\Data\DataViewManager.cs (1)
119if (r.NodeType != XmlNodeType.Element)
System\Data\XmlDataLoader.cs (6)
103if (n.NodeType == XmlNodeType.Element) 398if (n.NodeType == XmlNodeType.Element) 631if (reader.NodeType != XmlNodeType.Element) 746case XmlNodeType.Element: // It's an element 975case XmlNodeType.Element: // It's an element 1274case XmlNodeType.Element:
System\Data\XMLDiffLoader.cs (2)
203if (XmlNodeType.Element == ssync.NodeType) 258if (XmlNodeType.Element == ssync.NodeType)
System\Data\XmlToDatasetMap.cs (2)
445if (nodeRegion == null || nodeRegion.NodeType != XmlNodeType.Element) 479if (node.NodeType == XmlNodeType.Element)
System\Xml\DataPointer.cs (5)
320if (_column == null && _node.NodeType == XmlNodeType.Element) 347if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.NodeType == XmlNodeType.Element) 396return XmlNodeType.Element; 517case XmlNodeType.Element: 609if (_node.NodeType == XmlNodeType.Element)
System\Xml\DataSetMappper.cs (4)
138if (n.NodeType == XmlNodeType.Element) 174if (node.NodeType == XmlNodeType.Element && mt == MappingType.Element) 291if (n.NodeType != XmlNodeType.Element) 334if (n.NodeType != XmlNodeType.Element)
System\Xml\RegionIterator.cs (2)
123Debug.Assert(CurrentNode.NodeType == XmlNodeType.Element); 126if (CurrentNode.NodeType == XmlNodeType.Element && DataSetMapper.GetTableSchemaForElement((XmlElement)(CurrentNode)) != null)
System\Xml\XmlBoundElement.cs (3)
267Debug.Assert(dp.NodeType == XmlNodeType.Element); 307Debug.Assert(dp.NodeType == XmlNodeType.Element); 371case XmlNodeType.Element:
System\Xml\XmlDataDocument.cs (5)
764if (node.NodeType != XmlNodeType.Element) 997if (newNode.NodeType == XmlNodeType.Element) 1039if (dp.NodeType == XmlNodeType.Element) 1072XmlNodeType.Element => CreateElement(dp.Prefix, dp.LocalName, dp.NamespaceURI), 1515if (iter.CurrentNode!.NodeType == XmlNodeType.Element)
System\Xml\XPathNodePointer.cs (13)
134if (_node.NodeType == XmlNodeType.Element) 193if (nt == XmlNodeType.Element || nt == XmlNodeType.Attribute || nt == XmlNodeType.ProcessingInstruction) 227if (nt == XmlNodeType.Element || nt == XmlNodeType.Attribute || nt == XmlNodeType.ProcessingInstruction) 521if (_column == null && _node.NodeType == XmlNodeType.Element) 592if ((_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.NodeType == XmlNodeType.Element) 627if (bFirst && (_column != null || _node.NodeType != XmlNodeType.Element)) 1375while (node != null && ((nt = node.NodeType) != XmlNodeType.Element)) 1444} while (node != null && node.NodeType != XmlNodeType.Element); 1530} while (node != null && node.NodeType != XmlNodeType.Element); 1560} while (node != null && node.NodeType != XmlNodeType.Element); 1601} while (node != null && node.NodeType != XmlNodeType.Element); 1620} while (node != null && node.NodeType != XmlNodeType.Element); 1633} while (node != null && node.NodeType == XmlNodeType.Element);
System.IO.Packaging (9)
System\IO\Packaging\InternalRelationshipCollection.cs (2)
245if (reader.NodeType == XmlNodeType.Element 269if (reader.NodeType == XmlNodeType.Element
System\IO\Packaging\PackagingUtilities.cs (1)
86Debug.Assert(reader.NodeType == XmlNodeType.Element, "XmlReader should be positioned at an Element");
System\IO\Packaging\PartBasedPackageProperties.cs (2)
494if (reader.MoveToContent() != XmlNodeType.Element 522if (reader.NodeType != XmlNodeType.Element)
System\IO\Packaging\XmlCompatibilityReader.cs (1)
155case XmlNodeType.Element:
System\IO\Packaging\ZipPackage.cs (3)
980if ((reader.NodeType == XmlNodeType.Element) 1006if (reader.NodeType == XmlNodeType.Element 1013else if (reader.NodeType == XmlNodeType.Element
System.Private.DataContractSerialization (60)
System\Runtime\Serialization\DataContractSerializer.cs (1)
487throw XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(SR.Format(SR.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader);
System\Runtime\Serialization\ExtensionDataReader.cs (1)
219_nodeType = XmlNodeType.Element;
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
458throw XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(SR.Format(SR.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (3)
778_ilg.Load(XmlNodeType.Element); 780ThrowUnexpectedStateException(XmlNodeType.Element); 1034ThrowUnexpectedStateException(XmlNodeType.Element);
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (2)
194if (nodeType != XmlNodeType.Element) 196throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader);
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
569else if (this.Node.NodeType == XmlNodeType.Element)
System\Runtime\Serialization\ReflectionReader.cs (1)
175throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader);
System\Runtime\Serialization\SchemaImporter.cs (1)
1417if (child.NodeType == XmlNodeType.Element)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
954ThrowUnexpectedStateException(XmlNodeType.Element);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (14)
269if (xmlReader.NodeType != XmlNodeType.Element) 270throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 523throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 551if (nodeType != XmlNodeType.Element) 553throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 728case XmlNodeType.Element: 743throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 795if (nodeType != XmlNodeType.Element) 796throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 818if (nodeType != XmlNodeType.Element) 819throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 877if (nodeType != XmlNodeType.Element) 878throw CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 966if (nodeType == XmlNodeType.Element)
System\Runtime\Serialization\XmlSerializableReader.cs (3)
27if (xmlReader.NodeType != XmlNodeType.Element) 28throw XmlObjectSerializerReadContext.CreateUnexpectedStateException(XmlNodeType.Element, xmlReader); 57(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement))
System\Xml\XmlBaseReader.cs (14)
994if (nodeType == XmlNodeType.Element) 1001if (_node.NodeType == XmlNodeType.Element) 1004return (MoveToContent() == XmlNodeType.Element); 1024return (_node.NodeType == XmlNodeType.Element || IsStartElement()) && _node.Prefix == prefix && _node.LocalName == localName; 1033return (_node.NodeType == XmlNodeType.Element || IsStartElement()) && _node.LocalName == localName && _node.IsNamespaceUri(namespaceUri); 1041return (_node.NodeType == XmlNodeType.Element || IsStartElement()) && _node.LocalName == localName && _node.IsNamespaceUri(namespaceUri); 1183if (_node.NodeType != XmlNodeType.Element) 1231if (_node.NodeType != XmlNodeType.Element) 1252int nodeDepth = _node.NodeType == XmlNodeType.Element ? _depth - 1 : _depth; 1368if (nodeType == XmlNodeType.Element || nodeType == XmlNodeType.EndElement) 1432if (nodeType == XmlNodeType.Element || nodeType == XmlNodeType.EndElement) 1726if ((_node.NodeType == XmlNodeType.Element || MoveToElement()) && !IsEmptyElement) 1954case XmlNodeType.Element: 2360: base(XmlNodeType.Element,
System\Xml\XmlBinaryReader.cs (11)
91if (this.Node.NodeType != XmlNodeType.Element) 119if (this.Node.NodeType != XmlNodeType.Element) 150if (this.Node.NodeType != XmlNodeType.Element) 196if (this.Node.NodeType != XmlNodeType.Element) 210if (this.Node.NodeType != XmlNodeType.Element) 224if (this.Node.NodeType != XmlNodeType.Element) 238if (this.Node.NodeType != XmlNodeType.Element) 252if (this.Node.NodeType != XmlNodeType.Element) 266if (this.Node.NodeType != XmlNodeType.Element) 280if (this.Node.NodeType != XmlNodeType.Element) 1123if (this.Node.NodeType != XmlNodeType.Element)
System\Xml\XmlDictionaryReader.cs (4)
428case XmlNodeType.Element: 457if (this.NodeType != XmlNodeType.Element) 459if (this.NodeType == XmlNodeType.Element) 562if (nodeType == XmlNodeType.Element || nodeType == XmlNodeType.EndElement)
System\Xml\XmlDictionaryWriter.cs (1)
406case XmlNodeType.Element:
System\Xml\XmlExceptionHelper.cs (1)
67case XmlNodeType.Element:
System.Private.Xml (357)
System\Xml\BinaryXml\XmlBinaryReader.cs (10)
519if (_nodetype == XmlNodeType.Element 530if (_parentNodeType != XmlNodeType.Element) 535if (_parentNodeType != XmlNodeType.Element) 802if (XmlNodeType.Element == _parentNodeType) 1032if (this.NodeType != XmlNodeType.Element && this.NodeType != XmlNodeType.EndElement) 1044case XmlNodeType.Element: 1728if (this.NodeType == XmlNodeType.Element || this.NodeType == XmlNodeType.EndElement) 1767if (this.NodeType == XmlNodeType.Element || this.NodeType == XmlNodeType.EndElement) 2811case XmlNodeType.Element: 3090_nodetype = XmlNodeType.Element;
System\Xml\Core\ReadContentAsBinaryHelper.cs (3)
159if (_reader.NodeType != XmlNodeType.Element) 202if (_reader.NodeType != XmlNodeType.Element) 276Debug.Assert(_reader.NodeType == XmlNodeType.Element);
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (3)
112if (_reader.NodeType != XmlNodeType.Element) 156if (_reader.NodeType != XmlNodeType.Element) 224Debug.Assert(_reader.NodeType == XmlNodeType.Element);
System\Xml\Core\XmlCharCheckingReader.cs (1)
233case XmlNodeType.Element:
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
95case XmlNodeType.Element:
System\Xml\Core\XmlReader.cs (32)
693if (NodeType == XmlNodeType.Element) 733case XmlNodeType.Element: 748if (MoveToContent() != XmlNodeType.Element) 758if (MoveToContent() != XmlNodeType.Element) 776if (MoveToContent() != XmlNodeType.Element) 796if (MoveToContent() != XmlNodeType.Element) 823if (MoveToContent() != XmlNodeType.Element) 855if (MoveToContent() != XmlNodeType.Element) 895return MoveToContent() == XmlNodeType.Element; 902return MoveToContent() == XmlNodeType.Element && Name == name; 909return MoveToContent() == XmlNodeType.Element && LocalName == localname && NamespaceURI == ns; 923if (NodeType == XmlNodeType.Element && Ref.Equal(name, Name)) 944if (NodeType == XmlNodeType.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) 959if (NodeType != XmlNodeType.Element) 983if (NodeType == XmlNodeType.Element && Ref.Equal(name, Name)) 1000if (NodeType != XmlNodeType.Element) 1025if (NodeType == XmlNodeType.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) 1051if (nt == XmlNodeType.Element && Ref.Equal(name, Name)) 1078if (nt == XmlNodeType.Element && Ref.Equal(localName, LocalName) && Ref.Equal(namespaceURI, NamespaceURI)) 1110if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1127if (NodeType == XmlNodeType.Element) 1144case XmlNodeType.Element: 1213if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 1269if (NodeType != XmlNodeType.Element) 1307Debug.Assert(0 == (IsTextualNodeBitmap & (1 << (int)XmlNodeType.Element))); 1334Debug.Assert(0 == (CanReadContentAsBitmap & (1 << (int)XmlNodeType.Element))); 1361Debug.Assert(0 == (HasValueBitmap & (1 << (int)XmlNodeType.Element))); 1389if (NodeType == XmlNodeType.Element && !IsEmptyElement) 1415if (NodeType != XmlNodeType.Element) 1513if (NodeType != XmlNodeType.Element) 1537if (nodeType == XmlNodeType.Element) 1783case XmlNodeType.Element:
System\Xml\Core\XmlReaderAsync.cs (8)
166case XmlNodeType.Element: 185if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 201if (NodeType == XmlNodeType.Element) 218case XmlNodeType.Element: 268if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element) 300if (NodeType == XmlNodeType.Element && !IsEmptyElement) 369if (NodeType != XmlNodeType.Element) 391if (nodeType == XmlNodeType.Element)
System\Xml\Core\XmlSubtreeReader.cs (13)
432Debug.Assert(reader.NodeType == XmlNodeType.Element); 483(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement)) 489Debug.Assert(reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement); 552if (reader.Depth == _initialDepth && reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 590if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 602reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement || 609if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 839case XmlNodeType.Element: 977case XmlNodeType.Element: 1248case XmlNodeType.Element: 1375if (NodeType != XmlNodeType.Element) 1390case XmlNodeType.Element: 1566case XmlNodeType.Element:
System\Xml\Core\XmlSubtreeReaderAsync.cs (9)
46(reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement)) 52Debug.Assert(reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement); 116if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 128reader.NodeType == XmlNodeType.Element && reader.IsEmptyElement || 135if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement) 245case XmlNodeType.Element: 383case XmlNodeType.Element: 559if (NodeType != XmlNodeType.Element) 574case XmlNodeType.Element:
System\Xml\Core\XmlTextReaderImpl.cs (30)
435_fragmentType = XmlNodeType.Element; 836case XmlNodeType.Element: settings.ConformanceLevel = ConformanceLevel.Fragment; break; 1270Debug.Assert(_curNode.type == XmlNodeType.Element); 1385case XmlNodeType.Element: 1400goto case XmlNodeType.Element; 1713if (_curNode.type != XmlNodeType.Element) 1760if (_curNode.type != XmlNodeType.Element) 2221if (_curNode.type != XmlNodeType.Element) 2255if (_curNode.type != XmlNodeType.Element) 2289if (_curNode.type != XmlNodeType.Element) 3003case XmlNodeType.Element: 3952_fragmentType = XmlNodeType.Element; 4005_fragmentType = XmlNodeType.Element; 4024_fragmentType = XmlNodeType.Element; 4069_fragmentType = XmlNodeType.Element; 4106_fragmentType = _rootElementParsed ? XmlNodeType.Document : XmlNodeType.Element; 4260if (_index == 0 && _curNode.type != XmlNodeType.Element) 4271if (el.type != XmlNodeType.Element) 4366_curNode.SetNamedNode(XmlNodeType.Element, 4375_curNode.SetNamedNode(XmlNodeType.Element, 4382_curNode.SetNamedNode(XmlNodeType.Element, 4452Debug.Assert(_curNode.type == XmlNodeType.Element); 4651if (startTag.type == XmlNodeType.Element) 4728Debug.Assert(_curNode.type == XmlNodeType.Element); 4736Debug.Assert(_curNode.type == XmlNodeType.Element); 4962Debug.Assert(_curNode.type == XmlNodeType.Element); 8918Debug.Assert(_curNode.type == XmlNodeType.Element); 9186return _fragmentType == XmlNodeType.Element ? ConformanceLevel.Fragment : ConformanceLevel.Document; 9298Debug.Assert(_nodes[_index].type == XmlNodeType.Element); 9316Debug.Assert(_nodes[_index].type == XmlNodeType.Element);
System\Xml\Core\XmlTextReaderImplAsync.cs (18)
203Debug.Assert(_curNode.type == XmlNodeType.Element); 347case XmlNodeType.Element: 362goto case XmlNodeType.Element; 537if (_curNode.type != XmlNodeType.Element) 593if (_curNode.type != XmlNodeType.Element) 1567_fragmentType = XmlNodeType.Element; 1605_fragmentType = XmlNodeType.Element; 1623_fragmentType = XmlNodeType.Element; 1661_fragmentType = XmlNodeType.Element; 1682_fragmentType = XmlNodeType.Element; 1720_fragmentType = _rootElementParsed ? XmlNodeType.Document : XmlNodeType.Element; 1959_curNode.SetNamedNode(XmlNodeType.Element, 1968_curNode.SetNamedNode(XmlNodeType.Element, 1975_curNode.SetNamedNode(XmlNodeType.Element, 2282if (startTag.type == XmlNodeType.Element) 2361Debug.Assert(_curNode.type == XmlNodeType.Element); 2369Debug.Assert(_curNode.type == XmlNodeType.Element); 5297Debug.Assert(_curNode.type == XmlNodeType.Element);
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
413return type == XmlNodeType.Element && _isEmptyOrDefault; 417Debug.Assert(type == XmlNodeType.Element);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
956case XmlNodeType.Element:
System\Xml\Core\XmlWriter.cs (2)
317if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 368case XmlNodeType.Element:
System\Xml\Core\XmlWriterAsync.cs (3)
238if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 304case XmlNodeType.Element: 366case XmlNodeType.Element:
System\Xml\Core\XsdCachingReader.cs (8)
81if (_coreReader.NodeType == XmlNodeType.Element) 413case XmlNodeType.Element: 453if (_coreReader.NodeType != XmlNodeType.Element || _readAhead) 483Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement || (_coreReader.NodeType == XmlNodeType.Element && _coreReader.IsEmptyElement)); 496Debug.Assert(_coreReader.NodeType == XmlNodeType.EndElement || (_coreReader.NodeType == XmlNodeType.Element && _coreReader.IsEmptyElement)); 544case XmlNodeType.Element: 558goto case XmlNodeType.Element; 692Debug.Assert(_coreReader.NodeType == XmlNodeType.Element);
System\Xml\Core\XsdCachingReaderAsync.cs (4)
45case XmlNodeType.Element: 85if (_coreReader.NodeType != XmlNodeType.Element || _readAhead) 110case XmlNodeType.Element: 124goto case XmlNodeType.Element;
System\Xml\Core\XsdValidatingReader.cs (26)
421case XmlNodeType.Element: 774if (this.NodeType != XmlNodeType.Element) 785if (this.NodeType != XmlNodeType.Element) 820if (this.NodeType != XmlNodeType.Element) 855if (this.NodeType != XmlNodeType.Element) 890if (this.NodeType != XmlNodeType.Element) 925if (this.NodeType != XmlNodeType.Element) 960if (this.NodeType != XmlNodeType.Element) 995if (this.NodeType != XmlNodeType.Element) 1030if (this.NodeType != XmlNodeType.Element) 1065if (this.NodeType != XmlNodeType.Element) 1512case XmlNodeType.Element: 1537goto case XmlNodeType.Element; 1716case XmlNodeType.Element: 1749case XmlNodeType.Element: 1767case XmlNodeType.Element: 1803case XmlNodeType.Element: 1834case XmlNodeType.Element: 1856if (NodeType == XmlNodeType.Element || NodeType == XmlNodeType.EndElement) 2007case XmlNodeType.Element: 2333if (_coreReader.NodeType == XmlNodeType.Element) 2440Debug.Assert(this.NodeType == XmlNodeType.Element); 2491else if (this.NodeType == XmlNodeType.Element) 2529case XmlNodeType.Element: 2597case XmlNodeType.Element: 2658case XmlNodeType.Element:
System\Xml\Core\XsdValidatingReaderAsync.cs (10)
124if (this.NodeType != XmlNodeType.Element) 136if (this.NodeType != XmlNodeType.Element) 176if (this.NodeType != XmlNodeType.Element) 350case XmlNodeType.Element: 375goto case XmlNodeType.Element; 502case XmlNodeType.Element: 656if (_coreReader.NodeType == XmlNodeType.Element) 776Debug.Assert(this.NodeType == XmlNodeType.Element); 826else if (this.NodeType == XmlNodeType.Element) 867case XmlNodeType.Element:
System\Xml\Dom\DocumentSchemaValidator.cs (4)
101case XmlNodeType.Element: //Validate children of this element 179case XmlNodeType.Element: 285case XmlNodeType.Element: 734case XmlNodeType.Element: //Flat validation, do not drill down into children
System\Xml\Dom\DocumentXPathNavigator.cs (28)
73goto case XmlNodeType.Element; 74case XmlNodeType.Element: 129case XmlNodeType.Element: 168case XmlNodeType.Element: 367&& node.NodeType != XmlNodeType.Element) 806case XmlNodeType.Element: 916if (child.NodeType == XmlNodeType.Element 1026while (following.NodeType != XmlNodeType.Element 1129if (sibling.NodeType == XmlNodeType.Element 1184case XmlNodeType.Element: 1479if (curNT != XmlNodeType.Document && curNT != XmlNodeType.Element) 1504case XmlNodeType.Element: 1521case XmlNodeType.Element: 1585if (_source.NodeType != XmlNodeType.Element) 1682goto case XmlNodeType.Element; 1683case XmlNodeType.Element: 1744goto case XmlNodeType.Element; 1745case XmlNodeType.Element: 2103case XmlNodeType.Element: 2108case XmlNodeType.Element: 2121case XmlNodeType.Element: 2243if (node.NodeType == XmlNodeType.Element && Match(node)) 2271return (node.NodeType == XmlNodeType.Element); 2295if (node.NodeType == XmlNodeType.Element && Match(node)) 2327Debug.Assert(node.NodeType == XmlNodeType.Element); 2352if (node.NodeType == XmlNodeType.Element && Match(node)) 2392Debug.Assert(node.NodeType == XmlNodeType.Element); 2419if (node.NodeType == XmlNodeType.Element && Match(node))
System\Xml\Dom\XmlDocument.cs (9)
406get { return (XmlElement?)FindChild(XmlNodeType.Element); } 477case XmlNodeType.Element: 548return !HasNodeTypeInPrevSiblings(XmlNodeType.Element, refChild.PreviousSibling); 553case XmlNodeType.Element: 587return !HasNodeTypeInPrevSiblings(XmlNodeType.Element, refChild); 590case XmlNodeType.Element: 969case XmlNodeType.Element: 1115case XmlNodeType.Element: 1202return XmlNodeType.Element;
System\Xml\Dom\XmlDocumentFragment.cs (2)
102loader.ParsePartialContent(this, value, XmlNodeType.Element); 132case XmlNodeType.Element:
System\Xml\Dom\XmlElement.cs (2)
112get { return XmlNodeType.Element; } 221case XmlNodeType.Element:
System\Xml\Dom\XmlElementList.cs (2)
30Debug.Assert(parent.NodeType == XmlNodeType.Element || parent.NodeType == XmlNodeType.Document); 160if (curNode.NodeType == XmlNodeType.Element)
System\Xml\Dom\XmlEntity.cs (1)
93type == XmlNodeType.Element ||
System\Xml\Dom\XmlEntityReference.cs (1)
136case XmlNodeType.Element:
System\Xml\Dom\XmlLoader.cs (7)
108case XmlNodeType.Element: 148Debug.Assert(parent.NodeType == XmlNodeType.Element); 465case XmlNodeType.Element: 494Debug.Assert(parent!.NodeType == XmlNodeType.Element); 597XmlTextReaderImpl tr = new XmlTextReaderImpl("", XmlNodeType.Element, pc); 790XmlNamespaceManager mgr = ParsePartialContent(node, innerxmltext, XmlNodeType.Element); 932contentNT = XmlNodeType.Element;
System\Xml\Dom\XmlNode.cs (6)
761case XmlNodeType.Element: 1091if (node.NodeType == XmlNodeType.Element) 1176if (node.NodeType == XmlNodeType.Element) 1244if (n.NodeType == XmlNodeType.Element && n.Name == name) 1260if (n.NodeType == XmlNodeType.Element && n.LocalName == localname && n.NamespaceURI == ns) 1465case XmlNodeType.Element:
System\Xml\Dom\XmlNodeReader.cs (18)
185case XmlNodeType.Element: 293if (_curNode.NodeType == XmlNodeType.Element) 333if (nt == XmlNodeType.Element) 494XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode!, name), 516XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode, name, ns), 530case XmlNodeType.Element: 627nt = XmlNodeType.Element; 629if (_curNode.NodeType == XmlNodeType.Element) 663if (nt == XmlNodeType.Element) 693case XmlNodeType.Element: 735else if (nt == XmlNodeType.Element) 875if (node.NodeType == XmlNodeType.Element) 943if (node.NodeType == XmlNodeType.Element) 995if (node.NodeType == XmlNodeType.Element) 1567&& (nt == XmlNodeType.Element || (nt == XmlNodeType.EntityReference && _bResolveEntity) || 1580else if (_readerNav.NodeType == XmlNodeType.Element 1630&& _readerNav.NodeType == XmlNodeType.Element 1667if (_readerNav.NodeType == XmlNodeType.Element)
System\Xml\Schema\AutoValidator.cs (1)
67if (reader.NodeType == XmlNodeType.Element)
System\Xml\Schema\DtdValidator.cs (3)
62case XmlNodeType.Element: 99reader.NodeType == XmlNodeType.Element) 149Debug.Assert(reader.NodeType == XmlNodeType.Element);
System\Xml\Schema\Inference\Infer.cs (5)
186while (_xtr.NodeType != XmlNodeType.Element && _xtr.Read()) ; 189if (_xtr.NodeType == XmlNodeType.Element) 701} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text)); 889else if (_xtr.NodeType == XmlNodeType.Element) 964} while ((!_xtr.EOF) && (_xtr.NodeType != XmlNodeType.EndElement) && (_xtr.NodeType != XmlNodeType.CDATA) && (_xtr.NodeType != XmlNodeType.Element) && (_xtr.NodeType != XmlNodeType.Text));
System\Xml\Schema\Parser.cs (4)
70while (reader.NodeType != XmlNodeType.Element && reader.Read()) { } 176else if (_reader.NodeType == XmlNodeType.Element) 276case XmlNodeType.Element: 333Debug.Assert(_reader!.NodeType == XmlNodeType.Element);
System\Xml\Schema\ParserAsync.cs (1)
30while (reader.NodeType != XmlNodeType.Element && await reader.ReadAsync().ConfigureAwait(false)) { }
System\Xml\Schema\XdrValidator.cs (1)
69case XmlNodeType.Element:
System\Xml\Schema\XsdValidator.cs (1)
106case XmlNodeType.Element:
System\Xml\Serialization\PrimitiveXmlSerializers.cs (20)
252if (Reader.NodeType == System.Xml.XmlNodeType.Element) 281if (Reader.NodeType == System.Xml.XmlNodeType.Element) 305if (Reader.NodeType == System.Xml.XmlNodeType.Element) 329if (Reader.NodeType == System.Xml.XmlNodeType.Element) 353if (Reader.NodeType == System.Xml.XmlNodeType.Element) 377if (Reader.NodeType == System.Xml.XmlNodeType.Element) 401if (Reader.NodeType == System.Xml.XmlNodeType.Element) 425if (Reader.NodeType == System.Xml.XmlNodeType.Element) 449if (Reader.NodeType == System.Xml.XmlNodeType.Element) 473if (Reader.NodeType == System.Xml.XmlNodeType.Element) 503if (Reader.NodeType == System.Xml.XmlNodeType.Element) 527if (Reader.NodeType == System.Xml.XmlNodeType.Element) 551if (Reader.NodeType == System.Xml.XmlNodeType.Element) 575if (Reader.NodeType == System.Xml.XmlNodeType.Element) 599if (Reader.NodeType == System.Xml.XmlNodeType.Element) 623if (Reader.NodeType == System.Xml.XmlNodeType.Element) 652if (Reader.NodeType == System.Xml.XmlNodeType.Element) 676if (Reader.NodeType == System.Xml.XmlNodeType.Element) 706if (Reader.NodeType == System.Xml.XmlNodeType.Element) 730if (Reader.NodeType == System.Xml.XmlNodeType.Element)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
325while (Reader.NodeType == XmlNodeType.Element) 480if (Reader.NodeType == XmlNodeType.Element)
System\Xml\Serialization\XmlSerializationReader.cs (3)
1219else if (_r.NodeType == XmlNodeType.Element && _events.OnUnknownElement == null) 1245else if (unknownNode.NodeType == XmlNodeType.Element) 1274XmlNodeType.Element => $"<{_r.LocalName} xmlns='{_r.NamespaceURI}'>",
System\Xml\XPath\XPathDocument.cs (1)
194case XmlNodeType.Element:
System\Xml\XPath\XPathNavigator.cs (2)
2016XmlTextReader reader = new XmlTextReader(xml, XmlNodeType.Element, context); 2044case XmlNodeType.Element:
System\Xml\XPath\XPathNavigatorReader.cs (6)
49XmlNodeType.Element, // XPathNodeType.Element 297if ((_nodeType != XmlNodeType.Element) 310if ((_nodeType != XmlNodeType.Element) 347if (_nodeType == XmlNodeType.Element) 771_nodeType = XmlNodeType.Element; 1005else if (_nodeType == XmlNodeType.Element
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (1)
83case XmlNodeType.Element:
System\Xml\Xsl\Xslt\XsltInput.cs (21)
59public XmlNodeType NodeType { get { return _nodeType == XmlNodeType.Element && 0 < _currentRecord ? XmlNodeType.Attribute : _nodeType; } } 125if (_nodeType == XmlNodeType.Element) 348Debug.Assert(_nodeType == XmlNodeType.Element, "To call MoveToFirstChild() XsltInut should be positioned on an Element."); 358Debug.Assert(_nodeType != XmlNodeType.Element || IsEmptyElement, "On non-empty elements we should call MoveToFirstChild()"); 359if (_nodeType == XmlNodeType.Element || _nodeType == XmlNodeType.EndElement) 368if (_nodeType == XmlNodeType.Element && MoveToFirstChild()) 467case XmlNodeType.Element: 488Debug.Assert(_reader.NodeType == XmlNodeType.Element); 492_nodeType = XmlNodeType.Element; 518Debug.Assert(_nodeType == XmlNodeType.Element, "For MoveToElement() we should be positioned on Element or Attribute"); 524Debug.Assert(_nodeType == XmlNodeType.Element, "For MoveToLiteralAttribute() we should be positioned on Element or Attribute"); 539Debug.Assert(_nodeType == XmlNodeType.Element, "For MoveToLiteralAttribute() we should be positioned on Element or Attribute"); 589Debug.Assert(_nodeType == XmlNodeType.Element || _nodeType == XmlNodeType.EndElement, "Input is positioned on element or attribute"); 620Debug.Assert(_nodeType != XmlNodeType.Element || _attributesRead, "Should first read attributes"); 628Debug.Assert(_nodeType != XmlNodeType.Element || _attributesRead, "Should first read attributes"); 637Debug.Assert(_nodeType != XmlNodeType.Element || _attributesRead, "Should first read attributes"); 714Debug.Assert(NodeType == XmlNodeType.Element); 843Debug.Assert(NodeType == XmlNodeType.Element); 921Debug.Assert(NodeType == XmlNodeType.Element && IsXsltNamespace()); 1042XmlNodeType.Element => 1, // "<" 1184Debug.Assert(input.NodeType == XmlNodeType.Element || input.NodeType == XmlNodeType.Attribute);
System\Xml\Xsl\Xslt\XsltLoader.cs (8)
298Debug.Assert(_input.NodeType == XmlNodeType.Element); 370case XmlNodeType.Element: 1096case XmlNodeType.Element: 1380case XmlNodeType.Element: 1478case XmlNodeType.Element: 1671case XmlNodeType.Element: 2034Debug.Assert(_input.NodeType == XmlNodeType.Element); 2480Debug.Assert(_input.NodeType == XmlNodeType.Element);
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
34case XmlNodeType.Element:
System\Xml\Xsl\XsltOld\ReaderOutput.cs (3)
391if (NodeType == XmlNodeType.Element || NodeType == XmlNodeType.Attribute || _currentInfo == _attributeValue) 437if (NodeType == XmlNodeType.Element && !IsEmptyElement) 472if (NodeType == XmlNodeType.Element)
System\Xml\Xsl\XsltOld\RecordBuilder.cs (4)
286_currentInfo!.NodeType = XmlNodeType.Element; 487Debug.Assert(_mainNode.NodeType == XmlNodeType.Element); 512Debug.Assert(_mainNode.NodeType == XmlNodeType.Element); 718case XmlNodeType.Element:
System\Xml\Xsl\XsltOld\SequentialOutput.cs (4)
109Debug.Assert(record.MainNode.NodeType == XmlNodeType.Element); 366case XmlNodeType.Element: 427case XmlNodeType.Element: 476case XmlNodeType.Element:
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
30case XmlNodeType.Element:
System.Private.Xml.Linq (22)
System\Xml\Linq\XContainer.cs (4)
905case XmlNodeType.Element: 959case XmlNodeType.Element: 1018case XmlNodeType.Element: 1132case XmlNodeType.Element:
System\Xml\Linq\XDocument.cs (3)
903case XmlNodeType.Element: 907ValidateDocument(previous, XmlNodeType.None, XmlNodeType.Element); 926if (nt == XmlNodeType.Element || nt == XmlNodeType.DocumentType)
System\Xml\Linq\XElement.cs (7)
292return XmlNodeType.Element; 811if (reader.MoveToContent() != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType)); 846if (await reader.MoveToContentAsync().ConfigureAwait(false) != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType)); 1883if (reader.MoveToContent() != XmlNodeType.Element) throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ExpectedNodeType, XmlNodeType.Element, reader.NodeType));
System\Xml\Linq\XNode.cs (2)
443case XmlNodeType.Element: 500case XmlNodeType.Element:
System\Xml\Schema\XNodeValidator.cs (1)
53case XmlNodeType.Element:
System\Xml\XPath\XNodeNavigator.cs (5)
16(1 << (int)XmlNodeType.Element) | 22(1 << (int)XmlNodeType.Element), // Element 31(1 << (int)XmlNodeType.Element) | 206case XmlNodeType.Element: 274case XmlNodeType.Element:
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\CanonicalXmlDocument.cs (2)
35if (childNode.NodeType == XmlNodeType.Element) 52if (childNode.NodeType == XmlNodeType.Element)
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
603case XmlNodeType.Element:
System.Windows.Forms (10)
System\Resources\ResXResourceReader.cs (10)
351if (reader.NodeType == XmlNodeType.Element) 475_resHeaderVersion = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 479_resHeaderMimeType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 483_resHeaderReaderType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 487_resHeaderWriterType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 494_resHeaderVersion = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 497_resHeaderMimeType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 500_resHeaderReaderType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 503_resHeaderWriterType = reader.NodeType == XmlNodeType.Element ? reader.ReadElementString() : reader.Value.Trim(); 566if (reader.NodeType != XmlNodeType.Element)
System.Xaml (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
172case XmlNodeType.Element:
System\Xaml\Parser\XamlScanner.cs (4)
180case XmlNodeType.Element: 245Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 281Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element); 423Debug.Assert(_xmlReader.NodeType == XmlNodeType.Element);