Partager via


SchemaReferences Class

Set of Associated XML Schemas.When the object is serialized out as xml, its qualified name is ds:schemaRefs.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.CustomXmlDataProperties.SchemaReferences

Namespace:  DocumentFormat.OpenXml.CustomXmlDataProperties
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(SchemaReference))> _
Public Class SchemaReferences _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As SchemaReferences
[ChildElementInfoAttribute(typeof(SchemaReference))]
public class SchemaReferences : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • SchemaReference <ds:schemaRef>

[ISO/IEC 29500-1 1st Edition]

22.5.2.3 schemaRefs (Set of Associated XML Schemas)

This element specifies the set of XML schemas that are associated with the parent custom XML part. Any number of XML schemas can be referenced, and this collection of schemas shall then be used to validate the contents of the corresponding custom XML part. If this element is present, then the set of XML schemas provided within should be used to validate the contents of the corresponding custom XML part (including the explicit presence of no child elements to specify that no custom XML schemas should be used even if one is present).

If this element is omitted, then applications can determine the set of XML schemas to be used to validate the contents of this part using any desired means.

[Example: Consider the following content for a custom XML part properties part:

<ds:datastoreItem ds:itemID="{A67AC88A-A164-4ADE-8889-8826CE44DE6E}">
<ds:schemaRefs>
<ds:schemaRef ds:uri="http://www.example.com/exampleSchema" />
</ds:schemaRefs>
</ds:datastoreItem>

The schemaRefs element contains the set of XML Schema references that can be used to validate the contents of this part. end example]

Parent Elements

datastoreItem (§22.5.2.1)

Child Elements

Subclause

schemaRef (Associated XML Schema)

§22.5.2.2

[Note: The W3C XML Schema definition of this element’s content model (CT_DatastoreSchemaRefs) is located in §A.6.5. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SchemaReferences Members

DocumentFormat.OpenXml.CustomXmlDataProperties Namespace