System::Xml::Schema::XmlSchemaCollection::Add 方法
内容
[
隐藏
]XmlSchemaCollection::Add(const SharedPtr<XmlSchema>&) method
将 XmlSchema 添加到集合中。
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchema> &schema)
| 参数 | 类型 | 描述 |
|---|---|---|
| schema | const SharedPtr<XmlSchema>& | 要添加到集合中的 XmlSchema。 |
ReturnValue
XmlSchema 对象。
另见
- Typedef SharedPtr
- Class XmlSchema
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++
XmlSchemaCollection::Add(const SharedPtr<XmlSchema>&, const SharedPtr<System::Xml::XmlResolver>&) method
将 XmlSchema 添加到集合中。指定的 XmlResolver 用于解析任何外部引用。
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchema> &schema, const SharedPtr<System::Xml::XmlResolver> &resolver)
| 参数 | 类型 | 描述 |
|---|---|---|
| schema | const SharedPtr<XmlSchema>& | 要添加到集合中的 XmlSchema。 |
| resolver | const SharedPtr<System::Xml::XmlResolver>& | 用于解析 include 和 import 元素中引用的命名空间的 XmlResolver。如果此值为 nullptr,则不会解析外部引用。 |
ReturnValue
已添加到模式集合的 XmlSchema。
另见
- Typedef SharedPtr
- Class XmlSchema
- Class XmlResolver
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++
XmlSchemaCollection::Add(const SharedPtr<XmlSchemaCollection>&) method
将给定集合中定义的所有命名空间(包括其关联的模式)添加到此集合中。
void System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchemaCollection> &schema)
| 参数 | 类型 | 描述 |
|---|---|---|
| schema | const SharedPtr<XmlSchemaCollection>& | 您想要添加到此集合的 XmlSchemaCollection。 |
另见
- Typedef SharedPtr
- Class XmlSchemaCollection
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++
XmlSchemaCollection::Add(const String&, const SharedPtr<XmlReader>&) method
将 XmlReader 中包含的模式添加到模式集合中。
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const SharedPtr<XmlReader> &reader)
| 参数 | 类型 | 描述 |
|---|---|---|
| ns | const String& | 与模式关联的命名空间 URI。对于 XML 模式,通常是 targetNamespace。 |
| reader | const SharedPtr<XmlReader>& | 包含要添加的模式的 XmlReader。 |
ReturnValue
已添加到模式集合的 XmlSchema;如果添加的模式是 XDR 模式或模式中存在编译错误,则为 nullptr。
另见
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlReader
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++
XmlSchemaCollection::Add(const String&, const SharedPtr<XmlReader>&, const SharedPtr<System::Xml::XmlResolver>&) method
将 XmlReader 中包含的模式添加到模式集合中。指定的 XmlResolver 用于解析任何外部资源。
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const SharedPtr<XmlReader> &reader, const SharedPtr<System::Xml::XmlResolver> &resolver)
| 参数 | 类型 | 描述 |
|---|---|---|
| ns | const String& | 与模式关联的命名空间 URI。对于 XML 模式,通常是 targetNamespace。 |
| reader | const SharedPtr<XmlReader>& | 包含要添加的模式的 XmlReader。 |
| resolver | const SharedPtr<System::Xml::XmlResolver>& | 用于解析 include 和 import 元素或 x-schema 属性(XDR 模式)中引用的命名空间的 XmlResolver。如果此值为 nullptr,则不会解析外部引用。 |
ReturnValue
已添加到模式集合的 XmlSchema;如果添加的模式是 XDR 模式或模式中存在编译错误,则为 nullptr。
另见
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlReader
- Class XmlResolver
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++
XmlSchemaCollection::Add(const String&, const String&) method
将由给定 URL 定位的模式添加到模式集合中。
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const String &uri)
| 参数 | 类型 | 描述 |
|---|---|---|
| ns | const String& | 与模式关联的命名空间 URI。对于 XML 模式,通常是 targetNamespace。 |
| uri | const String& | 指定要加载的模式的 URL。 |
ReturnValue
已添加到模式集合的 XmlSchema;如果添加的模式是 XDR 模式或模式中存在编译错误,则为 nullptr。
另见
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Font for C++