19 instantiations of XDocument
illink (1)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
39 var xdoc = new XDocument (combined);
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\XmlEncryptionExtensions.cs (3)
29var doc = new XDocument(new XElement(element)); 111var doc = new XDocument(new XElement(element)); 131var innerDoc = new XDocument(clonedElementWhichRequiresEncryption);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
UnaryServerCallHandlerTests.cs (3)
1137var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1291var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1321var requestContent = new XDocument(new XElement("name", "World")).ToString();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
XmlAssert.cs (1)
57return new XDocument(
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (1)
57return new XDocument(
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\GenerateBindingRedirects.cs (1)
333document = new XDocument(
Microsoft.Cci.Extensions (1)
Dgml\DgmlExtensions.cs (1)
30var xDocument = new XDocument();
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
48_document = new XDocument(
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
32var manifest = new XDocument(
System.Private.Xml.Linq (2)
System\Xml\Linq\XDocument.cs (2)
482XDocument d = new XDocument(); 867return new XDocument(this);
XmlFileLogger (1)
ObjectModel\Build.cs (1)
46var document = new XDocument();
343 references to XDocument
dotnet-svcutil-lib (6)
Shared\MSBuildProj.cs (4)
180XDocument projDefinition = XDocument.Parse(projectText); 431XDocument doc = XDocument.Load(filePath);
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
81var doc = XDocument.Parse(new StreamReader(stream).ReadToEnd());
dotnet-user-jwts (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
dotnet-user-secrets (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
IIS.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
152var xDocument = XDocument.Load(xmlFile).Root;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
74XDocument ancmConfig; 78ancmConfig = XDocument.Load(ancmConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
103XDocument webConfig = XDocument.Load(webConfigLocation);
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
74XDocument ancmConfig; 78ancmConfig = XDocument.Load(ancmConfigPath);
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
74XDocument ancmConfig; 78ancmConfig = XDocument.Load(ancmConfigPath);
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
74XDocument ancmConfig; 78ancmConfig = XDocument.Load(ancmConfigPath);
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (2)
74XDocument ancmConfig; 78ancmConfig = XDocument.Load(ancmConfigPath);
IIS.Tests (2)
Utilities\TestServer.cs (2)
125var webHostConfig = XDocument.Load(Path.GetFullPath("HostableWebCore.config"));
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
152var xDocument = XDocument.Load(xmlFile).Root;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
100var document = XDocument.Load(webConfigPath);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (2)
103XDocument webConfig = XDocument.Load(webConfigLocation);
illink (2)
ILLink.Tasks (3)
CombineLinkerXmlFiles.cs (3)
32 XDocument subFile = XDocument.Load (linkerXmlFile.ItemSpec); 39 var xdoc = new XDocument (combined);
Microsoft.AspNetCore.App.UnitTests (10)
SharedFxTests.cs (4)
268var runtimeListDoc = XDocument.Load(runtimeListPath); 321var runtimeListDoc = XDocument.Load(runtimeListPath);
TargetingPackTests.cs (6)
299var frameworkListDoc = XDocument.Load(frameworkListPath); 362var frameworkListDoc = XDocument.Load(frameworkListPath); 404var frameworkListDoc = XDocument.Load(frameworkListPath);
Microsoft.AspNetCore.Authentication.Test (4)
OpenIdConnect\TestSettings.cs (4)
49var xdoc = XDocument.Parse(responseBody.Replace("doctype", "DOCTYPE")); 87var xdoc = XDocument.Parse(transaction.ResponseText.Replace("doctype", "DOCTYPE"));
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\XmlEncryptionExtensions.cs (3)
29var doc = new XDocument(new XElement(element)); 111var doc = new XDocument(new XElement(element)); 131var innerDoc = new XDocument(clonedElementWhichRequiresEncryption);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
ServerStreamingServerCallHandlerTests.cs (4)
248var responseXml1 = XDocument.Parse(line1!); 255var responseXml2 = XDocument.Parse(line2!);
UnaryServerCallHandlerTests.cs (4)
1127var responseXml = XDocument.Load(new MemoryStream(requestData)); 1367var responseXml = XDocument.Load(httpContext.Response.Body);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
XmlAssert.cs (6)
21var sortedExpectedXDocument = SortAttributes(XDocument.Parse(expectedXml)); 22var sortedActualXDocument = SortAttributes(XDocument.Parse(actualXml)); 55private static XDocument SortAttributes(XDocument document)
Microsoft.AspNetCore.Mvc.FunctionalTests (12)
AsyncEnumerableTestBase.cs (2)
75var xml = XDocument.Parse(content);
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (6)
21var sortedExpectedXDocument = SortAttributes(XDocument.Parse(expectedXml)); 22var sortedActualXDocument = SortAttributes(XDocument.Parse(actualXml)); 55private static XDocument SortAttributes(XDocument document)
XmlDataContractSerializerFormattersWrappingTest.cs (2)
228var root = XDocument.Parse(content).Root; 270var root = XDocument.Parse(content).Root;
XmlSerializerFormattersWrappingTest.cs (2)
210var root = XDocument.Parse(content).Root; 252var root = XDocument.Parse(content).Root;
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\UrlRewriteFileParser.cs (2)
23var xmlDoc = XDocument.Load(reader, LoadOptions.SetLineInfo);
Microsoft.AspNetCore.Rewrite.Tests (2)
IISUrlRewrite\RewriteMapParserTests.cs (2)
27var xmlDoc = XDocument.Load(new StringReader(xml), LoadOptions.SetLineInfo);
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
154var webConfig = XDocument.Load(webConfigFilePath);
xunit\IISExpressAncmSchema.cs (2)
31XDocument ancmConfig; 35ancmConfig = XDocument.Load(ancmConfigPath);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (8)
IISDeployer.cs (2)
311var config = XDocument.Parse(DeploymentParameters.ServerConfigTemplateContent ?? File.ReadAllText("IIS.config"));
IISDeployerBase.cs (4)
25var document = XDocument.Load(ApplicationHostConfigPath); 44var webconfig = XDocument.Load(path);
IISExpressDeployer.cs (2)
286XDocument config = XDocument.Parse(serverConfig);
Microsoft.Build.BuildCheck.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.CommandLine.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.Engine.OM.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.Engine.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.Framework.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.Tasks.Core (11)
AssemblyDependency\GenerateBindingRedirects.cs (5)
66var doc = LoadAppConfig(AppConfigFile); 114var outputDoc = LoadAppConfig(OutputAppConfigFile); 328private XDocument LoadAppConfig(ITaskItem appConfigItem) 330XDocument document; 342document = XDocument.Load(xr);
GenerateResource.cs (2)
3060XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
ResourceHandling\MSBuildResXReader.cs (2)
31XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
302XDocument document; 308document = XDocument.Parse($"<Task>{taskBody}</Task>");
Microsoft.Build.Tasks.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Build.Utilities.UnitTests (2)
TestAssemblyInfo.cs (2)
107XDocument doc = null; 111doc = XDocument.Load(xr);
Microsoft.Cci.Extensions (2)
Dgml\DgmlExtensions.cs (2)
13public static XDocument GetDgmlDependencyGraph(this IEnumerable<IAssembly> assemblies) 30var xDocument = new XDocument();
Microsoft.DotNet.Arcade.Sdk (7)
src\ExtractNgenMethodList.cs (2)
53var document = XDocument.Load(IbcXmlFilePath);
src\GenerateResxSource.cs (1)
106foreach (var node in XDocument.Load(ResourceFile).Descendants("data"))
src\SourceBuild\AddSourceMappingToNugetConfig.cs (2)
27XDocument document = XDocument.Load(NuGetConfigFile);
src\SourceBuild\AddSourceToNuGetConfig.cs (2)
33XDocument document = XDocument.Load(NuGetConfigFile);
Microsoft.DotNet.Arcade.Sdk.Tests (3)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (1)
54XDocument.Load(new StringReader(content));
SourceMappingToNugetConfigTest.cs (2)
48XDocument document = XDocument.Parse(NUGET_CONFIG);
Microsoft.DotNet.Build.Tasks.Installers (7)
src\CreateWixCommandPackageDropBase.cs (3)
192XDocument doc = XDocument.Load(wixObjFilePath); 243private void ProcessXPath(XDocument doc, string xpath, string outputPath, XmlNamespaceManager nsmgr, int pathField1, int pathField2 = 0)
src\GenerateMacOSDistributionFile.cs (2)
39XDocument document = XDocument.Load(TemplatePath);
src\StabilizeWixFileId.cs (2)
52XDocument content = XDocument.Load(SourceFile);
Microsoft.DotNet.Build.Tasks.Packaging (4)
GenerateNuSpec.cs (2)
162var nuspec = XDocument.Load(memStream);
PackageIndex.cs (2)
216XDocument frameworkList = XDocument.Load(frameworkListPath);
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Vsix\FinalizeInsertionVsixFile.cs (3)
52var document = XDocument.Load(stream); 77internal void UpdateInstallationElement(XDocument document)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (8)
Vsix\FinalizeInsertionVsixFile.cs (8)
29var manifestXml = XDocument.Load(new StringReader(manifest)); 56var manifestXml = XDocument.Load(new StringReader(manifest)); 80var manifestXml = XDocument.Load(new StringReader(manifest)); 110var manifestXml = XDocument.Load(new StringReader(manifest));
Microsoft.DotNet.Build.Tasks.Workloads (8)
Msi\MsiPayloadPackageProject.wix.cs (2)
57var proj = XDocument.Load(msiCsproj);
Msi\WorkloadPackGroupMsi.wix.cs (6)
84var directoriesDoc = XDocument.Load(directoriesWxsPath); 92var productDoc = XDocument.Load(productWxsPath); 100var registryDoc = XDocument.Load(registryWxsPath);
Microsoft.DotNet.NuGetRepack.Tasks (6)
src\NuGetVersionUpdater.cs (4)
32public XDocument SpecificationXml { get; } 42XDocument specificationXml, 123XDocument nuspecXml = null; 138nuspecXml = XDocument.Load(nuspecStream);
src\ReplacePackageParts.cs (2)
144var nuspecXml = XDocument.Load(nuspecStream);
Microsoft.DotNet.NuGetRepack.Tests (1)
VersionUpdaterTests.cs (1)
47XDocument.Load(new MemoryStream(actualParts[i].blob));
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SignTool.Tests (2)
FakeBuildEngine.cs (2)
42var xml = XDocument.Load(projectFileName);
Microsoft.DotNet.VersionTools (2)
Automation\NupkgInfoFactory.cs (2)
58XDocument doc = XDocument.Load(nuspecFileStream, LoadOptions.PreserveWhitespace);
Microsoft.DotNet.XliffTasks (7)
Model\TranslatableXmlDocument.cs (2)
15protected XDocument Document { get; private set; } 19Document = XDocument.Load(reader);
Model\XDocumentExtensions.cs (1)
16public static void SaveCustom(this XDocument document, TextWriter writer)
Model\XlfDocument.cs (2)
28private XDocument _document; 40_document = XDocument.Load(reader);
Tasks\TransformTemplates.cs (2)
66XDocument templateXml = XDocument.Load(templatePath);
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\ManifestParser.cs (2)
36var document = XDocument.Load(stream);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
32var manifest = new XDocument(
Microsoft.Extensions.SecretManager.Tools.Tests (6)
InitCommandTest.cs (6)
96var projectDocument = XDocument.Load(projectFile); 105var projectDocumentWithoutSecret = XDocument.Load(projectFile, LoadOptions.PreserveWhitespace); 110var projectDocumentWithSecret = XDocument.Load(projectFile, LoadOptions.PreserveWhitespace);
netstandard (1)
netstandard.cs (1)
2271[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
System.Private.Xml.Linq (137)
System\Xml\Linq\XContainer.cs (4)
20/// <see cref="XDocument"/> and <see cref="XElement"/>. 245settings.ConformanceLevel = this is XDocument ? ConformanceLevel.Document : ConformanceLevel.Fragment; 1297if (this is XDocument) 1330if (this is XDocument)
System\Xml\Linq\XDocument.cs (99)
17/// An <see cref="XDocument"/> can contain: 32/// Initializes a new instance of the <see cref="XDocument"/> class. 34/// <see cref="XDocument"/>, creating an <see cref="XDocument"/> with 36/// <see cref="XDocument"/> object. 39/// Initializes a new instance of the <see cref="XDocument"/> class. 46/// Initializes a new instance of the <see cref="XDocument"/> class with the specified content. 69/// Initializes a new instance of the <see cref="XDocument"/> class 97/// Initializes a new instance of the <see cref="XDocument"/> class from an 101/// The <see cref="XDocument"/> object that will be copied. 103public XDocument(XDocument other) 159/// <see cref="XDocument"/> and initializing it from a data source containing 162/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 163/// to create an <see cref="XDocument"/> from a string containing XML. 164/// <seealso cref="XDocument.Parse(string)"/> 167/// Create a new <see cref="XDocument"/> based on the contents of the file 169/// <see cref="XDocument.Parse(string)"/> to create an <see cref="XDocument"/> from 172/// <seealso cref="XDocument.Parse(string)"/> 180/// A URI string referencing the file to load into a new <see cref="XDocument"/>. 183/// An <see cref="XDocument"/> initialized with the contents of the file referenced 186public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri) 192/// Create a new <see cref="XDocument"/> based on the contents of the file 204/// A string representing the URI of the file to be loaded into a new <see cref="XDocument"/>. 210/// An <see cref="XDocument"/> initialized with the contents of the file referenced 214public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri, LoadOptions options) 224/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 229/// created <see cref="XDocument"/>. 232/// A new <see cref="XDocument"/> containing the contents of the passed in 235public static XDocument Load(Stream stream) 241/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 252/// created <see cref="XDocument"/>. 258/// A new <see cref="XDocument"/> containing the contents of the passed in 261public static XDocument Load(Stream stream, LoadOptions options) 271/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 282/// created <see cref="XDocument"/>. 291/// A new <see cref="XDocument"/> containing the contents of the passed in 294public static async Task<XDocument> LoadAsync(Stream stream, LoadOptions options, CancellationToken cancellationToken) 307/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 312/// created <see cref="XDocument"/>. 315/// A new <see cref="XDocument"/> containing the contents of the passed in 318public static XDocument Load(TextReader textReader) 324/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 335/// created <see cref="XDocument"/>. 341/// A new <see cref="XDocument"/> containing the contents of the passed in 344public static XDocument Load(TextReader textReader, LoadOptions options) 354/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 365/// created <see cref="XDocument"/>. 374/// A new <see cref="XDocument"/> containing the contents of the passed in 377public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken) 390/// Create a new <see cref="XDocument"/> containing the contents of the 395/// <see cref="XDocument"/>. 398/// A new <see cref="XDocument"/> containing the contents of the passed 401public static XDocument Load(XmlReader reader) 407/// Create a new <see cref="XDocument"/> containing the contents of the 412/// <see cref="XDocument"/>. 418/// A new <see cref="XDocument"/> containing the contents of the passed 421public static XDocument Load(XmlReader reader, LoadOptions options) 427XDocument d = InitLoad(reader, options); 436/// Create a new <see cref="XDocument"/> containing the contents of the 441/// <see cref="XDocument"/>. 450/// A new <see cref="XDocument"/> containing the contents of the passed 453public static Task<XDocument> LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 458return Task.FromCanceled<XDocument>(cancellationToken); 462private static async Task<XDocument> LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 469XDocument d = InitLoad(reader, options); 480private static XDocument InitLoad(XmlReader reader, LoadOptions options) 482XDocument d = new XDocument(); 507/// Create a new <see cref="XDocument"/> from a string containing 511/// Create a new <see cref="XDocument"/> from a string containing 518/// An <see cref="XDocument"/> containing an XML tree initialized from the 521public static XDocument Parse(string text) 527/// Create a new <see cref="XDocument"/> from a string containing 545/// An <see cref="XDocument"/> containing an XML tree initialized from the 548public static XDocument Parse(string text, LoadOptions options) 561/// Output this <see cref="XDocument"/> to the passed in <see cref="Stream"/>. 566/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling 572/// The <see cref="Stream"/> to output this <see cref="XDocument"/> to. 580/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 609/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 645/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>. 650/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 656/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to. 664/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 683/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 694/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 719/// Outputs this <see cref="XDocument"/>'s underlying XML tree. The output can 724/// Output this <see cref="XDocument"/> to a file. 729/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling 743/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 757/// Output this <see cref="XDocument"/> to a file. 787/// Output this <see cref="XDocument"/>'s underlying XML tree to the 789/// <seealso cref="XDocument.Save(XmlWriter)"/> 793/// <see cref="XDocument"/>. 816/// Output this <see cref="XDocument"/>'s underlying XML tree to the 818/// <seealso cref="XDocument.Save(XmlWriter)"/> 822/// <see cref="XDocument"/>. 872XDocument? other = node as XDocument;
System\Xml\Linq\XElement.cs (6)
547/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 548/// to create an <see cref="XDocument"/> from a string containing XML. 549/// <seealso cref="XDocument.Load(string)" /> 559/// <seealso cref="XDocument.Parse(string)"/> 582/// <seealso cref="XDocument.Load(string, LoadOptions)"/> 2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document));
System\Xml\Linq\XNode.cs (4)
23/// <see cref="XDocument"/>, 597/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 703XDocument? n = this as XDocument;
System\Xml\Linq\XNodeEqualityComparer.cs (2)
31/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 70/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two
System\Xml\Linq\XNodeReader.cs (7)
113if (o is XDocument) 294if (o.parent != null && o.parent.parent == null && o.parent is XDocument) 300if (_parent is XDocument) 849XDocument? d = _source as XDocument; 1184private bool ReadIntoDocument(XDocument d) 1261if (n.parent == null || (n.parent.parent == null && n.parent is XDocument))
System\Xml\Linq\XObject.cs (3)
47public XDocument? Document 54XDocument? doc = n as XDocument;
System\Xml\Linq\XText.cs (2)
87if (parent is XDocument) 113return parent is XDocument ?
System\Xml\Schema\XNodeValidator.cs (6)
49source = ((XDocument)source).Root!; 457/// Validate a <see cref="XDocument"/> 464public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 470/// Validate a <see cref="XDocument"/> 477/// <param name="addSchemaInfo">If enabled the <see cref="XDocument"/> and the corresponding 480public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo)
System\Xml\XPath\XNodeNavigator.cs (4)
279XElement? root = ((XDocument)_source).Root; 366if ((TextMask & mask) != 0 && c.GetParent() == null && c is XDocument) 545if ((TextMask & mask) != 0 && container.GetParent() == null && container is XDocument) 931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
System.Xml.XDocument (1)
artifacts\obj\System.Xml.XDocument\Debug\net9.0\System.Xml.XDocument.Forwards.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
WorkloadBuildTasks (2)
PatchNuGetConfig.cs (2)
91XDocument doc = XDocument.Load(templateNuGetConfigPath);
XmlFileLogger (1)
ObjectModel\Build.cs (1)
46var document = new XDocument();