80 references to XmlDeclaration
Microsoft.Build (1)
Evaluation\Preprocessor.cs (1)
228if (child.NodeType == XmlNodeType.XmlDeclaration)
Microsoft.Build.Tasks.Core (1)
XamlTaskFactory\RelationsParser.cs (1)
595(node.NodeType != XmlNodeType.XmlDeclaration) &&
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationProvider.cs (1)
158case XmlNodeType.XmlDeclaration:
Microsoft.Maui.Controls.Xaml (3)
XamlLoader.cs (3)
70 if (reader.NodeType == XmlNodeType.XmlDeclaration) 112 if (reader.NodeType == XmlNodeType.XmlDeclaration) 153 if (reader.NodeType == XmlNodeType.XmlDeclaration)
PresentationFramework (1)
System\Windows\Documents\FixedSchema.cs (1)
37if (base.NodeType == XmlNodeType.XmlDeclaration)
System.Configuration.ConfigurationManager (4)
System\Configuration\LocalFileSettingsProvider.cs (1)
472if (child.NodeType == XmlNodeType.XmlDeclaration)
System\Configuration\MgmtConfigurationRecord.cs (1)
632case XmlNodeType.XmlDeclaration:
System\Configuration\XmlUtil.cs (2)
84case XmlNodeType.XmlDeclaration: 635if (nodeType == XmlNodeType.XmlDeclaration)
System.Data.Common (6)
System\Xml\DataPointer.cs (5)
524case XmlNodeType.XmlDeclaration: 768if (child != null && child.NodeType == XmlNodeType.XmlDeclaration) 778if (NodeType == XmlNodeType.XmlDeclaration) 799if (NodeType == XmlNodeType.XmlDeclaration) 820if (NodeType == XmlNodeType.XmlDeclaration)
System\Xml\XmlDataDocument.cs (1)
1061XmlNodeType.XmlDeclaration => CreateXmlDeclaration(dp.Version!, dp.Encoding, dp.Standalone),
System.IO.Packaging (1)
System\IO\Packaging\PackagingUtilities.cs (1)
34if (reader.Read() && reader.NodeType == XmlNodeType.XmlDeclaration && reader.Depth == 0)
System.Private.DataContractSerialization (3)
System\Xml\XmlBaseReader.cs (2)
1966case XmlNodeType.XmlDeclaration: 2540: base(XmlNodeType.XmlDeclaration,
System\Xml\XmlDictionaryWriter.cs (1)
415case XmlNodeType.XmlDeclaration:
System.Private.Xml (58)
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
484case XmlNodeType.XmlDeclaration: 804else if (XmlNodeType.XmlDeclaration == _parentNodeType) 2570_nodetype = XmlNodeType.XmlDeclaration; 3219|| ((_textXmlReader.NodeType == XmlNodeType.XmlDeclaration)
System\Xml\Core\XmlReader.cs (5)
1166case XmlNodeType.XmlDeclaration: 1323Debug.Assert(0 == (IsTextualNodeBitmap & (1 << (int)XmlNodeType.XmlDeclaration))); 1350Debug.Assert(0 == (CanReadContentAsBitmap & (1 << (int)XmlNodeType.XmlDeclaration))); 1377Debug.Assert(0 != (HasValueBitmap & (1 << (int)XmlNodeType.XmlDeclaration))); 1797case XmlNodeType.XmlDeclaration:
System\Xml\Core\XmlReaderAsync.cs (1)
240case XmlNodeType.XmlDeclaration:
System\Xml\Core\XmlTextReaderImpl.cs (3)
556InitFragmentReader(XmlNodeType.XmlDeclaration, context, true); 3011case XmlNodeType.XmlDeclaration: 3603_curNode.SetNamedNode(XmlNodeType.XmlDeclaration, _xml);
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
1188_curNode.SetNamedNode(XmlNodeType.XmlDeclaration, _xml);
System\Xml\Core\XmlWriter.cs (2)
317if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 403case XmlNodeType.XmlDeclaration:
System\Xml\Core\XmlWriterAsync.cs (3)
238if (reader.NodeType is XmlNodeType.Element or XmlNodeType.XmlDeclaration) 337case XmlNodeType.XmlDeclaration: 400case XmlNodeType.XmlDeclaration:
System\Xml\Dom\XmlDeclaration.cs (1)
154get { return XmlNodeType.XmlDeclaration; }
System\Xml\Dom\XmlDocument.cs (8)
482case XmlNodeType.XmlDeclaration: 535case XmlNodeType.XmlDeclaration: 540return refChild.NodeType != XmlNodeType.XmlDeclaration; 544if (refChild.NodeType != XmlNodeType.XmlDeclaration) 555if (refChild.NodeType != XmlNodeType.XmlDeclaration) 771case XmlNodeType.XmlDeclaration: 991case XmlNodeType.XmlDeclaration: 1139case XmlNodeType.XmlDeclaration:
System\Xml\Dom\XmlDocumentFragment.cs (4)
142case XmlNodeType.XmlDeclaration: 145if (firstNode == null || firstNode.NodeType != XmlNodeType.XmlDeclaration) 156if (newChild.NodeType == XmlNodeType.XmlDeclaration) 172if (newChild.NodeType == XmlNodeType.XmlDeclaration)
System\Xml\Dom\XmlLoader.cs (2)
205case XmlNodeType.XmlDeclaration: 381Debug.Assert(_reader!.NodeType == XmlNodeType.XmlDeclaration);
System\Xml\Dom\XmlNode.cs (1)
1478case XmlNodeType.XmlDeclaration:
System\Xml\Dom\XmlNodeReader.cs (19)
110Debug.Assert(nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType); 131Debug.Assert(_curNode.NodeType == XmlNodeType.XmlDeclaration || _curNode.NodeType == XmlNodeType.DocumentType); 137if (_curNode.NodeType == XmlNodeType.XmlDeclaration) 192case XmlNodeType.XmlDeclaration: 214Debug.Assert(_curNode.NodeType == XmlNodeType.XmlDeclaration || _curNode.NodeType == XmlNodeType.DocumentType); 235Debug.Assert(nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType); 237return _curNode.NodeType == XmlNodeType.XmlDeclaration ? 246else if (nt == XmlNodeType.XmlDeclaration) 336|| (_bOnAttrVal && nt != XmlNodeType.XmlDeclaration && nt != XmlNodeType.DocumentType)) 338else if (nt == XmlNodeType.XmlDeclaration) 496XmlNodeType.XmlDeclaration => GetDeclarationAttr((XmlDeclaration)_curNode, name), 518XmlNodeType.XmlDeclaration => (ns.Length == 0) ? GetDeclarationAttr((XmlDeclaration)_curNode, name) : null, 536case XmlNodeType.XmlDeclaration: 575return (nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType); 667else if (nt == XmlNodeType.XmlDeclaration && namespaceURI.Length == 0) 712case XmlNodeType.XmlDeclaration: 746else if (nt == XmlNodeType.XmlDeclaration) 838case XmlNodeType.XmlDeclaration: 1053Debug.Assert(_curNode.NodeType == XmlNodeType.XmlDeclaration || _curNode.NodeType == XmlNodeType.DocumentType);
System\Xml\Schema\Inference\Infer.cs (1)
782do { _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)));
System\Xml\XPath\XPathDocument.cs (1)
282case XmlNodeType.XmlDeclaration:
System\Xml\XPath\XPathNavigator.cs (1)
2108case XmlNodeType.XmlDeclaration:
System\Xml\Xsl\XsltOld\RecordBuilder.cs (1)
667Debug.Assert(_mainNode.NodeType == XmlNodeType.ProcessingInstruction || _mainNode.NodeType == XmlNodeType.XmlDeclaration);
System.Private.Xml.Linq (1)
System\Xml\Linq\XDocument.cs (1)
499if (reader.NodeType == XmlNodeType.XmlDeclaration)