SchemaLibrary Class

Embedded Custom XML Schema Supplementary Data.When the object is serialized out as xml, its qualified name is sl:schemaLibrary.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.CustomXmlSchemaReferences.SchemaLibrary

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

Syntax

声明
<ChildElementInfoAttribute(GetType(Schema))> _
Public Class SchemaLibrary _
    Inherits OpenXmlCompositeElement
用法
Dim instance As SchemaLibrary
[ChildElementInfoAttribute(typeof(Schema))]
public class SchemaLibrary : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Schema <sl:schema>

[ISO/IEC 29500-1 第 1 个版本]

23.2.2 schemaLibrary (Embedded Custom XML Schema Supplementary Data)

This element specifies the set of XML namespaces which have been associated with the contents of the custom XML markup within the current Office Open XML document. Each unique namespace which is referenced within the document can be referenced within this element by a single schema element, regardless of the number of constituent XML schemas which comprise that namespace.

[Example: Consider a WordprocessingML document which contains custom XML markup in two distinct namespaces: the http://www.example.com namespace and the http://www.example2.com namespace. If the first namespace is defined by a single XML schema, and the second is defined by five XML schemas (which are cross-referenced using the appropriate XML Schema syntax), the following content would be displayed in the document's schema library XML:

<sl:schemaLibrary>
<sl:schema … />
<sl:schema … />
</sl:schemaLibrary>

The schemaLibrary element contains only two schema elements even though there are six XML schemas in use, as there are only two distinct namespaces for which data is stored. end example]

Parent Elements

settings (§17.15.1.78)

Child Elements

Subclause

schema (Custom XML Schema Reference)

§23.2.1

[ISO/IEC 29500-1 第 1 个版本]

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

SchemaLibrary Members

DocumentFormat.OpenXml.CustomXmlSchemaReferences Namespace