XmlSchemaCompilationSettings.EnableUpaCheck Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the XmlSchemaSet should check for Unique Particle Attribution (UPA) violations.
public:
property bool EnableUpaCheck { bool get(); void set(bool value); };
public bool EnableUpaCheck { get; set; }
member this.EnableUpaCheck : bool with get, set
Public Property EnableUpaCheck As Boolean
Property Value
true
if the XmlSchemaSet should check for Unique Particle Attribution (UPA) violations; otherwise, false
. The default is true
.
Remarks
When the EnableUpaCheck property is set to false
, validation will be performed based on the following rules.
- If there is a choice between a strong type and a wildcard, the XmlSchemaSet will pick the strongly typed particle as illustrated in the following schema and Xml examples.
<xs:sequence>
<xs:any namespace="##any"/>
<xs:element name="A" type="xs:string" minOccurs="0"/>
</xs:sequence>
In the following Xml, the A
element will be associated with <xs:element name="A" type="xs:string" minOccurs="0"/>
in the schema.
<A>some text</A>
- If there is a choice between two strongly typed elements, the XmlSchemaSet will pick the first one.
<xs:sequence>
<xs:element name="A" type="xs:string"/>
<xs:element name="B" type="xs:string" minOccurs="0"/>
<xs:element name="B" type="xs:string"/>
</xs:sequence>
In the following Xml, the B
element will be associated with <xs:element name="B" type="xs:string" minOccurs="0"/>
in the schema.
<A/>
<B/>
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기