39 instantiations of XDocument
aspire (1)
Projects\PrebuiltAppHostServer.cs (1)
292var doc = new XDocument(
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
146var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement); 301var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement);
illink (1)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
41var 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.OpenApi.SourceGenerators (1)
XmlComments\XmlComment.InheritDoc.cs (1)
381copy = new XDocument((XDocument)(object)node);
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\GenerateBindingRedirects.cs (1)
338document = new XDocument(
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
24copy = new XDocument(((XDocument)(object)node));
Microsoft.CodeAnalysis.Workspaces (2)
Log\WorkspaceStructureLogger.cs (1)
39var document = new XDocument();
Shared\Extensions\ISymbolExtensions.cs (1)
570copy = new XDocument(((XDocument)(object)node));
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
1141var doc = new XDocument(solutionElement);
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\arcade\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.NET.Build.Tasks (2)
GenerateToolsSettingsFile.cs (1)
106return new XDocument(
WriteAppConfigWithSupportedRuntime.cs (1)
153new XDocument(
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
43XDocument manifestDocument = new XDocument(new XDeclaration("1.0", "UTF-8", "yes"), manifest);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
BlazorWriteSatelliteAssemblyFile.cs (1)
47var xDocument = new XDocument(root);
CreateBlazorTrimmerRootDescriptorFile.cs (1)
72return new XDocument(roots).Root.ToString();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
GeneratePackageAssetsTargetsFile.cs (1)
41var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
62var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetsPropsFile.cs (1)
127var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
80var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
37var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
StaticWebAssetsGeneratePackagePropsFile.cs (1)
29var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
NuGet.Commands (1)
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
232var doc = new XDocument(
NuGet.Configuration (1)
Settings\SettingsFile.cs (1)
206return new XDocument(configurationElement.AsXNode());
NuGet.PackageManagement (2)
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
36var document = new XDocument(new XElement(rootName));
Utility\XmlUtility.cs (1)
29var document = new XDocument(new XElement(rootName));
NuGet.Packaging (5)
PackageCreation\Authoring\Manifest.cs (1)
100new XDocument(
PackageCreation\Authoring\PackageBuilder.cs (3)
1191XDocument document = new XDocument( 1244XDocument document = new XDocument(element); 1264XDocument document = new XDocument(
PackagesConfigWriter.cs (1)
401var document = new XDocument();
System.Private.Xml.Linq (2)
System\Xml\Linq\XDocument.cs (2)
494XDocument d = new XDocument(); 875return new XDocument(this);
596 references to XDocument
aspire (17)
Packaging\NuGetConfigMerger.cs (8)
14public required XDocument Document { get; init; } 156XDocument doc; 159doc = XDocument.Load(stream); 798private static async Task SaveConfigAsync(FileInfo nugetConfigFile, XDocument document) 837var doc = XDocument.Load(stream); 943XDocument doc; 946doc = XDocument.Load(stream);
Projects\DotNetBasedAppHostServerProject.cs (6)
132private XDocument CreateProjectFile(IEnumerable<IntegrationReference> integrations) 173var doc = XDocument.Parse(template); 372var doc = CreateProjectFile(integrations); 632var doc = XDocument.Load(versionsPropsPath);
Projects\FallbackProjectParser.cs (2)
74var doc = XDocument.Load(projectFile.FullName);
Projects\PrebuiltAppHostServer.cs (1)
292var doc = new XDocument(
Aspire.Cli.EndToEnd.Tests (2)
CentralPackageManagementTests.cs (2)
205var appHostProject = XDocument.Load(appHostCsprojPath);
Aspire.Cli.Tests (50)
Packaging\NuGetConfigMergerSnapshotTests.cs (10)
87var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 150var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 212var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 272var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 337var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
Packaging\NuGetConfigMergerTests.cs (16)
93var xml = XDocument.Load(targetConfigPath); 134var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 173var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 213var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 323var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 373var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 442var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 508var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
Packaging\PackagingServiceTests.cs (2)
378var doc = XDocument.Load(nugetConfigPath);
Projects\AppHostServerProjectTests.cs (4)
153var doc = XDocument.Load(projectPath); 297var projectDoc = XDocument.Parse(projectContent);
Projects\PrebuiltAppHostServerTests.cs (18)
23var doc = XDocument.Parse(xml); 43var doc = XDocument.Parse(xml); 66var doc = XDocument.Parse(xml); 82var doc = XDocument.Parse(xml); 93var doc = XDocument.Parse(xml); 104var doc = XDocument.Parse(xml); 116var doc = XDocument.Parse(xml); 128var doc = XDocument.Parse(xml); 141var doc = XDocument.Parse(xml);
Aspire.Dashboard (2)
Model\TextVisualizerViewModel.cs (2)
59var document = XDocument.Parse(text.Trim());
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
146var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement); 301var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement);
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (5)
957var xmlDoc = LoadXmlDocumentation(type.Assembly); 2654private static readonly ConcurrentDictionary<string, XDocument?> s_xmlDocCache = new(StringComparer.Ordinal); 2679public static XDocument? LoadXmlDocumentation(Assembly assembly) 2695return XDocument.Load(xmlPath); 2713public static string? GetXmlDocSummary(XDocument? xmlDoc, string memberName)
Aspire.Hosting.RemoteHost.Tests (12)
AtsCapabilityScannerTests.cs (12)
491var doc = System.Xml.Linq.XDocument.Parse(""" 510var doc = System.Xml.Linq.XDocument.Parse(""" 529var doc = System.Xml.Linq.XDocument.Parse(""" 548var doc = System.Xml.Linq.XDocument.Parse(""" 570var doc = System.Xml.Linq.XDocument.Parse(""" 591var first = AtsCapabilityScanner.LoadXmlDocumentation(assembly); 592var second = AtsCapabilityScanner.LoadXmlDocumentation(assembly);
ConfigurationSchemaGenerator (2)
ConfigSchemaEmitter.cs (2)
436var doc = XDocument.Parse(docComment);
dotnet (4)
Commands\Run\CSharpCompilerCommand.cs (2)
417var frameworkList = XDocument.Load(frameworkListPath);
ToolPackage\ToolConfigurationDeserializer.cs (2)
28XDocument doc; 31doc = XDocument.Load(stream);
dotnet-svcutil-lib (6)
Shared\MSBuildProj.cs (4)
171XDocument projDefinition = XDocument.Parse(projectText); 428XDocument doc = XDocument.Load(filePath);
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
81var doc = XDocument.Parse(new StreamReader(stream).ReadToEnd());
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
dotnet-user-secrets (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (2)
64_document = XDocument.Load(xmlReader, LoadOptions.SetLineInfo).CreateNavigator(); 75_document = XDocument.Load(documentStream, LoadOptions.SetLineInfo).CreateNavigator();
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (2)
64_document = XDocument.Load(xmlReader, LoadOptions.SetLineInfo).CreateNavigator(); 75_document = XDocument.Load(documentStream, LoadOptions.SetLineInfo).CreateNavigator();
illink (2)
ILLink.Tasks (3)
CombineLinkerXmlFiles.cs (3)
33XDocument subFile = XDocument.Load(linkerXmlFile.ItemSpec); 41var xdoc = new XDocument(combined);
Microsoft.Arcade.Common (2)
NupkgInfoFactory.cs (2)
53XDocument doc = XDocument.Load(nuspecFileStream, LoadOptions.PreserveWhitespace);
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.OpenApi.SourceGenerators (9)
XmlComments\XmlComment.cs (6)
36var doc = XDocument.Parse(xml, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); 67private static void ResolveListTags(XDocument document) 98private static void ResolveCodeTags(XDocument document, string tagName, string codeBlockDelimiter) 112private static void ResolveParamRefTags(XDocument document) 145private static void ResolveParaTags(XDocument document)
XmlComments\XmlComment.InheritDoc.cs (3)
197var document = XDocument.Parse(inheritedDocumentation, LoadOptions.PreserveWhitespace); 381copy = new XDocument((XDocument)(object)node);
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\UrlRewriteFileParser.cs (2)
23var xmlDoc = XDocument.Load(reader, 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.Build.Tasks.Core (13)
AssemblyDependency\GenerateBindingRedirects.cs (7)
70var doc = LoadAppConfig(AppConfigFile); 119var outputDoc = LoadAppConfig(outputAppConfigFile); 333private XDocument LoadAppConfig(ITaskItem appConfigItem) 335XDocument document; 350private XDocument LoadAppConfig(AbsolutePath appConfigFile) 352XDocument document; 356document = XDocument.Load(xr);
GenerateResource.cs (2)
3092XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
ResourceHandling\MSBuildResXReader.cs (2)
33XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
338XDocument document; 344document = XDocument.Parse($"<Task>{taskBody}</Task>");
Microsoft.CodeAnalysis (9)
DocumentationComments\DocumentationCommentIncludeCache.cs (6)
16internal sealed class DocumentationCommentIncludeCache : CachingFactory<string, KeyValuePair<string, XDocument>> 35public XDocument GetOrMakeDocument(string resolvedPath) 49private static KeyValuePair<string, XDocument> MakeValue(XmlReferenceResolver resolver, string resolvedPath) 57var document = XDocument.Load(reader, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); 68private static bool KeyValueEquality(string resolvedPath, KeyValuePair<string, XDocument> pathAndDocument)
InternalUtilities\XmlUtilities.cs (1)
24copy = new XDocument(((XDocument)(object)node));
RuleSet\RuleSetProcessor.cs (2)
65XDocument? ruleSetDocument = null; 73ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (2)
75var parsedDocument = XDocument.Parse(sourceTextStr, LoadOptions.PreserveWhitespace);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.CSharp (3)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
92XDocument doc; 98doc = XDocument.Parse(unprocessed, LoadOptions.PreserveWhitespace); 337XDocument doc;
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
AbstractResxGenerator.cs (1)
444foreach (var node in XDocument.Load(new SourceTextReader(text)).Descendants("data"))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
173Dim doc As XDocument 177doc = XDocument.Parse(unprocessed, LoadOptions.PreserveWhitespace) 498Dim doc As XDocument
Microsoft.CodeAnalysis.Workspaces (7)
Log\WorkspaceStructureLogger.cs (4)
33public async Task<XDocument> BuildWorkspaceStructureAsync( 39var document = new XDocument(); 134var msbuildProject = XDocument.Load(project.FilePath, LoadOptions.None);
Shared\Extensions\ISymbolExtensions.cs (3)
391var document = XDocument.Parse(inheritedDocumentation.FullXmlFragment, LoadOptions.PreserveWhitespace); 570copy = new XDocument(((XDocument)(object)node));
Microsoft.DotNet.Arcade.Sdk (3)
src\ExtractNgenMethodList.cs (2)
53var document = XDocument.Load(IbcXmlFilePath);
src\GenerateResxSource.cs (1)
106foreach (var node in XDocument.Load(ResourceFile).Descendants("data"))
Microsoft.DotNet.Build.Tasks.Installers (12)
src\CreateWixBuildWixpack.cs (5)
219IngestDefineVariablesFromString(XDocument.Load(file).ToString()); 243XDocument xmlDocument = XDocument.Load(file); 534var doc = XDocument.Load(copiedXmlPath);
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.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
1141var doc = new XDocument(solutionElement);
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)
131var nuspecXml = XDocument.Load(nuspecStream);
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
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.Maui.Resizetizer (6)
GeneratePackageAppxManifest.cs (3)
53 var appx = XDocument.Load(AppxManifest.ItemSpec); 69 void UpdateManifest(XDocument appx)
GenerateTizenManifest.cs (3)
65 var manifest = XDocument.Load(_tizenManifestFilePath); 81 void UpdateManifest(XDocument tizenManifest)
Microsoft.NET.Build.Tasks (15)
GenerateToolsSettingsFile.cs (1)
41internal static XDocument GenerateDocument(string entryPointRelativePath, string commandName, string commandRunner, string runtimeIdentifier,
ResolveRuntimePackAssets.cs (2)
166XDocument frameworkListDoc = XDocument.Load(runtimeListPath);
ResolveTargetingPackAssets.cs (3)
366XDocument frameworkListDoc = XDocument.Load(definition.FrameworkListPath); 456XDocument frameworkListDoc)
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
64var frameworkList = XDocument.Load(frameworkListPath);
StoreArtifactParser.cs (2)
19var doc = XDocument.Load(filterFile);
WriteAppConfigWithSupportedRuntime.cs (5)
33XDocument doc = LoadAppConfig(AppConfigFile); 50XDocument doc, 147private XDocument LoadAppConfig(ITaskItem appConfigItem) 149XDocument document; 159document = XDocument.Load(appConfigItem.ItemSpec);
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
43XDocument manifestDocument = new XDocument(new XDeclaration("1.0", "UTF-8", "yes"), manifest);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
BlazorReadSatelliteAssemblyFile.cs (2)
21var document = XDocument.Load(ReadFile.ItemSpec);
BlazorWriteSatelliteAssemblyFile.cs (1)
47var xDocument = new XDocument(root);
Microsoft.NET.Sdk.Publish.Tasks (16)
Tasks\GenerateEnvTransform.cs (6)
38XDocument templateContentDocument = XDocument.Parse(templateContent); 40XDocument? envTransformDoc = GenerateEnvTransformDocument(templateContentDocument, WebConfigEnvironmentVariables); 54public XDocument? GenerateEnvTransformDocument(XDocument templateContentDocument, string? webConfigEnvironmentVariables) 72XDocument updatedContent = templateContentDocument;
Tasks\TransformWebConfig.cs (3)
74XDocument? webConfigXml = null; 110webConfigXml = XDocument.Load(publishWebConfigPath); 128XDocument? transformedConfig = WebConfigTransform.Transform(
WebConfigTelemetry.cs (2)
29public static XDocument? AddTelemetry(XDocument? webConfig, string? projectGuid, bool ignoreProjectGuid, string? solutionFileFullPath, string? projectFileFullPath)
WebConfigTransform.cs (5)
10public static XDocument Transform(XDocument? webConfig, string appName, bool configureForAzure, bool useAppHost, string? extension, string? aspNetCoreModuleName, string? aspNetCoreHostingModel, string? environmentName, string? projectFullPath) 18webConfig = XDocument.Parse(WebConfigTemplate.Template); 246public static XDocument? AddProjectGuidToWebConfig(XDocument? document, string? projectGuid, bool ignoreProjectGuid)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
GeneratePackageAssetsTargetsFile.cs (1)
41var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
62var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetsPropsFile.cs (1)
127var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
80var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateV1StaticWebAssetsManifest.cs (2)
37var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes")); 60private void PersistManifest(XDocument document, XmlWriterSettings settings)
StaticWebAssetsGeneratePackagePropsFile.cs (1)
29var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
721XDocument document = XDocument.Parse(runsettings);
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\AppxManifestFile.cs (2)
21var doc = XDocument.Load(filePath);
Hosting\DefaultTestHostManager.cs (2)
595var doc = XDocument.Load(uwpSource);
netstandard (1)
netstandard.cs (1)
2271[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
NuGet.Build.Tasks (15)
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Commands (35)
RestoreCommand\MSBuildOutputFile.cs (2)
22public XDocument Content { get; } 24public MSBuildOutputFile(string path, XDocument content)
RestoreCommand\Utility\BuildAssetsUtils.cs (18)
93XDocument targetsXML = null; 94XDocument propsXML = null; 130public static XDocument GenerateMultiTargetFrameworkWarning() 132var doc = GenerateEmptyImportsFile(); 192XDocument doc, 203XDocument doc, 230public static XDocument GenerateEmptyImportsFile() 232var doc = new XDocument( 315public static XDocument GenerateMSBuildFile(List<MSBuildRestoreItemGroup> groups, ProjectStyle outputType) 317XDocument doc = null; 348public static void WriteXML(string path, XDocument doc) 386public static bool HasChanges(XDocument newFile, string path, ILogger log) 395var existing = ReadExisting(path, log); 399return !XDocument.DeepEquals(existing, newFile); 406public static XDocument ReadExisting(string path, ILogger log) 408XDocument result = null; 673var propsXML = GenerateMSBuildFile(props, request.ProjectStyle); 674var targetsXML = GenerateMSBuildFile(targets, request.ProjectStyle);
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Common (15)
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Configuration (20)
Settings\SettingsFile.cs (3)
53private readonly XDocument _xDocument; 116XDocument config = ExecuteSynchronized(() => 203private XDocument CreateDefaultConfig()
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
Utility\FileSystemUtility.cs (2)
16internal static XDocument GetOrCreateDocument(XDocument content, string fullPath)
NuGet.PackageManagement (28)
ConsoleProjectContext.cs (1)
27public XDocument OriginalPackagesConfig { get; set; }
EmptyNuGetProjectContext.cs (1)
31public XDocument OriginalPackagesConfig { get; set; }
FileModifiers\XmlTransformer.cs (2)
76var transformDocument = MSBuildNuGetProjectSystemUtility.GetOrCreateDocument(xmlFragment.Name, targetPath, projectSystem); 121var document = XmlUtility.GetOrCreateDocument(xmlFragment.Name,
INuGetProjectContext.cs (1)
53XDocument OriginalPackagesConfig { get; set; }
Projects\PackagesConfigNuGetProject.cs (3)
258public XDocument GetPackagesConfig() 278return XDocument.Load(stream); 328var xml = GetPackagesConfig();
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
Utility\MSBuildNuGetProjectSystemUtility.cs (2)
25internal static XDocument GetOrCreateDocument(XName rootName, string path, IMSBuildProjectSystem msBuildNuGetProjectSystem) 36var document = new XDocument(new XElement(rootName));
Utility\XmlUtility.cs (3)
13public static XDocument GetOrCreateDocument(XName rootName, string root, string path, INuGetProjectContext nuGetProjectContext) 27public static XDocument CreateDocument(XName rootName, string root, string path, INuGetProjectContext nuGetProjectContext) 29var document = new XDocument(new XElement(rootName));
NuGet.Packaging (47)
Core\NuspecCoreReader.cs (1)
27public NuspecCoreReader(XDocument xml)
Core\NuspecCoreReaderBase.cs (5)
20private readonly XDocument _xml; 67public NuspecCoreReaderBase(XDocument xml) 206public XDocument Xml 216private static XDocument LoadXml(Stream stream, bool leaveStreamOpen) 226return XDocument.Load(xmlReader, LoadOptions.None);
NuspecReader.cs (2)
81public NuspecReader(XDocument xml) 103public NuspecReader(XDocument xml, IFrameworkNameProvider frameworkProvider)
PackageCreation\Authoring\Manifest.cs (5)
123XDocument document; 131document = XDocument.Parse(content); 164private static string GetSchemaNamespace(XDocument document) 180private static void ValidateManifestSchema(XDocument document, string schemaNamespace) 210private static void CheckSchemaVersion(XDocument document)
PackageCreation\Authoring\ManifestReader.cs (1)
24public static Manifest ReadManifest(XDocument document)
PackageCreation\Authoring\PackageBuilder.cs (3)
1191XDocument document = new XDocument( 1244XDocument document = new XDocument(element); 1264XDocument document = new XDocument(
PackagesConfigReader.cs (4)
21private readonly XDocument _doc; 28public PackagesConfigReader(XDocument xml) 38public PackagesConfigReader(IFrameworkNameProvider frameworkMappings, XDocument xml) 92_doc = XDocument.Load(stream);
PackagesConfigWriter.cs (5)
27private XDocument _xDocument; 66_xDocument = XDocument.Load(stream); 110_xDocument = XDocument.Load(stream); 250public void UpdateOrAddPackageEntry(XDocument originalConfig, PackageReference newEntry) 401var document = new XDocument();
Rules\DependenciesGroupsForEachTFMRule.cs (1)
191var nuspec = packageNuspec.Xml;
Rules\InvalidUndottedFrameworkRule.cs (4)
46internal static IEnumerable<PackagingLogMessage> Validate(XDocument xml, IEnumerable<string> files) 143internal static IEnumerable<PackagingLogMessage> ValidateFrameworkAssemblies(XDocument xml, XElement metadataNode) 265private static XDocument LoadXml(Stream stream) 275return XDocument.Load(xmlReader, LoadOptions.None);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
35var nuspec = packageNuspec.Xml;
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Protocol (11)
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (3)
72XDocument document; 120public static DataServiceMetadata Extract(XDocument schemaDocument) 168XDocument schemaDocument,
LegacyFeed\V2FeedParser.cs (7)
314private IEnumerable<V2FeedPackageInfo> ParsePage(XDocument doc, string id, MetadataReferenceCache metadataCache) 450Task<XDocument> docRequest = LoadXmlAsync(uri, cacheKey, ignoreNotFounds, sourceCacheContext, log, token); 461var doc = await docRequest; 520internal async Task<XDocument> LoadXmlAsync( 628internal static string GetNextUrl(XDocument doc) 640internal static async Task<XDocument> LoadXmlAsync(Stream stream, CancellationToken token) 652return XDocument.Load(xmlReader, LoadOptions.None);
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (1)
508var doc = await V2FeedParser.LoadXmlAsync(httpSourceResult.Stream, cancellationToken);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
sdk-tasks (6)
GetDependencyInfo.cs (2)
30XDocument document = XDocument.Load(VersionDetailsXmlFile);
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (4)
31var stage0Doc = XDocument.Load(Stage0BundledVersionsPath); 32var stage2Doc = XDocument.Load(Stage2BundledVersionsPath);
System.Private.CoreLib.Generators (2)
NativeRuntimeEventSourceGenerator.cs (2)
36var manifest = XDocument.Parse(manifestText);
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); 442/// Create a new <see cref="XDocument"/> containing the contents of the 447/// <see cref="XDocument"/>. 456/// A new <see cref="XDocument"/> containing the contents of the passed 459public static Task<XDocument> LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 464return Task.FromCanceled<XDocument>(cancellationToken); 468private static async Task<XDocument> LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 475XDocument d = InitLoad(reader, options); 492private static XDocument InitLoad(XmlReader reader, LoadOptions options) 494XDocument d = new XDocument(); 515/// Create a new <see cref="XDocument"/> from a string containing 519/// Create a new <see cref="XDocument"/> from a string containing 526/// An <see cref="XDocument"/> containing an XML tree initialized from the 529public static XDocument Parse(string text) 535/// Create a new <see cref="XDocument"/> from a string containing 553/// An <see cref="XDocument"/> containing an XML tree initialized from the 556public static XDocument Parse(string text, LoadOptions options) 569/// Output this <see cref="XDocument"/> to the passed in <see cref="Stream"/>. 574/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling 580/// The <see cref="Stream"/> to output this <see cref="XDocument"/> to. 588/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 617/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 653/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>. 658/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 664/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to. 672/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 691/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 702/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 727/// Outputs this <see cref="XDocument"/>'s underlying XML tree. The output can 732/// Output this <see cref="XDocument"/> to a file. 737/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling 751/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 765/// Output this <see cref="XDocument"/> to a file. 795/// Output this <see cref="XDocument"/>'s underlying XML tree to the 797/// <seealso cref="XDocument.Save(XmlWriter)"/> 801/// <see cref="XDocument"/>. 824/// Output this <see cref="XDocument"/>'s underlying XML tree to the 826/// <seealso cref="XDocument.Save(XmlWriter)"/> 830/// <see cref="XDocument"/>. 880XDocument? 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"/>, 594/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 700XDocument? 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)
src\runtime\artifacts\obj\System.Xml.XDocument\Release\net11.0\System.Xml.XDocument.Forwards.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]