92 references to Document
Microsoft.Build.Tasks.Core (1)
ManifestUtil\TrustInfo.cs (1)
123permissionSetElement.ParentNode.NodeType == XmlNodeType.Document)
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
22if (node.NodeType == XmlNodeType.Document)
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\ISymbolExtensions.cs (1)
569if (node.NodeType == XmlNodeType.Document)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
22if (node.NodeType == XmlNodeType.Document)
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
502XmlNodeType.Document, // parsing document
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
79multipleRoots ? XmlNodeType.Element : XmlNodeType.Document,
PresentationFramework (1)
System\Windows\Markup\XamlReader.cs (1)
294XmlTextReader reader = new XmlTextReader(stream, XmlNodeType.Document, parserContext);
System.Data.Common (5)
System\Xml\DataPointer.cs (4)
510case XmlNodeType.Document: 783else if (NodeType == XmlNodeType.Document) 804else if (NodeType == XmlNodeType.Document) 825else if (NodeType == XmlNodeType.Document)
System\Xml\XPathNodePointer.cs (1)
354if (_node.NodeType == XmlNodeType.Document)
System.Private.Xml (71)
System\Xml\Core\XmlReader.cs (3)
1315Debug.Assert(0 == (IsTextualNodeBitmap & (1 << (int)XmlNodeType.Document))); 1342Debug.Assert(0 == (CanReadContentAsBitmap & (1 << (int)XmlNodeType.Document))); 1369Debug.Assert(0 == (HasValueBitmap & (1 << (int)XmlNodeType.Document)));
System\Xml\Core\XmlTextReaderImpl.cs (14)
220private XmlNodeType _fragmentType = XmlNodeType.Document; 439_fragmentType = XmlNodeType.Document; 837case XmlNodeType.Document: settings.ConformanceLevel = ConformanceLevel.Document; break; 3007case XmlNodeType.Document: 3939if (_fragmentType != XmlNodeType.Document) 3969if (_fragmentType == XmlNodeType.Document || _fragmentType == XmlNodeType.None) 3971_fragmentType = XmlNodeType.Document; 3999if (_fragmentType == XmlNodeType.Document) 4016if (_fragmentType == XmlNodeType.Document) 4056if (_fragmentType == XmlNodeType.Document) 4099if (!_rootElementParsed && _fragmentType == XmlNodeType.Document) 4106_fragmentType = _rootElementParsed ? XmlNodeType.Document : XmlNodeType.Element; 4242if (_index == 0 && _fragmentType != XmlNodeType.Document) 8246_nextParsingFunction = (_index > 0 || _fragmentType != XmlNodeType.Document) ? ParsingFunction.ElementContent
System\Xml\Core\XmlTextReaderImplAsync.cs (9)
1510if (_fragmentType != XmlNodeType.Document) 1535if (_fragmentType == XmlNodeType.Document || _fragmentType == XmlNodeType.None) 1537_fragmentType = XmlNodeType.Document; 1561if (_fragmentType == XmlNodeType.Document) 1587if (_fragmentType == XmlNodeType.Document) 1614if (_fragmentType == XmlNodeType.Document) 1714if (!_rootElementParsed && _fragmentType == XmlNodeType.Document) 1720_fragmentType = _rootElementParsed ? XmlNodeType.Document : XmlNodeType.Element; 1839if (_index == 0 && _fragmentType != XmlNodeType.Document)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
1099if (_coreReader.Depth > 0 || _coreReaderImpl.FragmentType != XmlNodeType.Document)
System\Xml\Dom\DocumentSchemaValidator.cs (4)
94case XmlNodeType.Document: 123if (nodeToValidate.ParentNode!.NodeType == XmlNodeType.Document) 266case XmlNodeType.Document: 485Debug.Assert(elementToValidate.ParentNode!.NodeType != XmlNodeType.Document); //Handle if it is the documentElement separately
System\Xml\Dom\DocumentXmlWriter.cs (2)
550if (nodeType == XmlNodeType.Document) 563if (nodeType == XmlNodeType.Document)
System\Xml\Dom\DocumentXPathNavigator.cs (11)
171case XmlNodeType.Document: 814case XmlNodeType.Document: 1192case XmlNodeType.Document: 1247if (_source.NodeType == XmlNodeType.Document) 1479if (curNT != XmlNodeType.Document && curNT != XmlNodeType.Element) 1505case XmlNodeType.Document: 1522case XmlNodeType.Document: 1541case XmlNodeType.Document: 1564case XmlNodeType.Document: 1614case XmlNodeType.Document: 2118case XmlNodeType.Document:
System\Xml\Dom\XmlCDataSection.cs (1)
50case XmlNodeType.Document:
System\Xml\Dom\XmlDocument.cs (4)
358get { return XmlNodeType.Document; } 806if (parentType == XmlNodeType.Document 1151case XmlNodeType.Document: 1234return XmlNodeType.Document;
System\Xml\Dom\XmlElementList.cs (1)
30Debug.Assert(parent.NodeType == XmlNodeType.Element || parent.NodeType == XmlNodeType.Document);
System\Xml\Dom\XmlLoader.cs (1)
749Debug.Assert(parentNode.NodeType != XmlNodeType.Document);
System\Xml\Dom\XmlNode.cs (5)
130if (parentNode.NodeType != XmlNodeType.Document) 188if (parentNode.NodeType == XmlNodeType.Document) 242while (parent != null && !(parent.NodeType == XmlNodeType.Document)) 1027if (nt == XmlNodeType.Document 1062if (NodeType == XmlNodeType.Document)
System\Xml\Dom\XmlNodeReader.cs (4)
89if (nt == XmlNodeType.Document) 178case XmlNodeType.Document: 1513if ((_readerNav.NodeType == XmlNodeType.Document) || (_readerNav.NodeType == XmlNodeType.DocumentFragment)) 1568(((_readerNav.NodeType == XmlNodeType.Document) || (_readerNav.NodeType == XmlNodeType.DocumentFragment)) && _readState == ReadState.Initial));
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
51case XmlNodeType.Document:
System\Xml\Dom\XmlText.cs (1)
54case XmlNodeType.Document:
System\Xml\Dom\XmlWhitespace.cs (1)
52case XmlNodeType.Document:
System\Xml\XPath\XPathNavigatorReader.cs (3)
48XmlNodeType.Document, // XPathNodeType.Root 298&& (_nodeType != XmlNodeType.Document) 311&& (_nodeType != XmlNodeType.Document)
System\Xml\Xsl\Xslt\XsltInput.cs (1)
55_nodeType = XmlNodeType.Document;
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
78case XmlNodeType.Document:
System\Xml\Xsl\XsltOld\SequentialOutput.cs (2)
452case XmlNodeType.Document: 500case XmlNodeType.Document:
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
58case XmlNodeType.Document:
System.Private.Xml.Linq (7)
System\Xml\Linq\XDocument.cs (3)
142return XmlNodeType.Document; 911case XmlNodeType.Document: 912throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document));
System\Xml\Linq\XElement.cs (1)
2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document));
System\Xml\Schema\XNodeValidator.cs (1)
48case XmlNodeType.Document:
System\Xml\XPath\XNodeNavigator.cs (2)
211case XmlNodeType.Document: 278case XmlNodeType.Document:
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
825if (parent.NodeType == XmlNodeType.Document)
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (1)
181if (parent.NodeType == XmlNodeType.Document)