dotnet / dotnet/dotnet-api-docs

Cannot pass null for targetNamespace to XmlSchemaSet.Add (string targetNamespace, string schemaUri);

Open
#1,724 0 comments 0 reactions 0 assignees View on GitHub
area-System.Xml dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

For this overload: public System.Xml.Schema.XmlSchema Add (string targetNamespace, string schemaUri);

I have found the following statement sentence to not be true WRT the use of null...
"The schema targetNamespace property, or null to use the targetNamespace specified in the schema."

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 4052f4bb-b8ca-c523-ce2a-77847134a3e1
* Version Independent ID: f0dfec92-12ca-0a5c-51a9-1c2bfbbd2a2a
* Content: [XmlSchemaSet.Add Method (System.Xml.Schema)](https://docs.microsoft.com/en-us/dotnet/api/system.xml.schema.xmlschemaset.add?view=netframework-4.7.2#System_Xml_Schema_XmlSchemaSet_Add_System_String_System_String_)
* Content Source: [xml/System.Xml.Schema/XmlSchemaSet.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Xml.Schema/XmlSchemaSet.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.