System::Xml::Schema::XmlSchemaCollection::Add method
XmlSchemaCollection::Add(const SharedPtr<XmlSchema>&) method
Adds the XmlSchema to the collection.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchema> &schema)
Parameter | Type | Description |
---|---|---|
schema | const SharedPtr<XmlSchema>& | The XmlSchema to add to the collection. |
ReturnValue
The XmlSchema object.
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++
XmlSchemaCollection::Add(const SharedPtr<XmlSchema>&, const SharedPtr<System::Xml::XmlResolver>&) method
Adds the XmlSchema to the collection. The specified XmlResolver is used to resolve any external references.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchema> &schema, const SharedPtr<System::Xml::XmlResolver> &resolver)
Parameter | Type | Description |
---|---|---|
schema | const SharedPtr<XmlSchema>& | The XmlSchema to add to the collection. |
resolver | const SharedPtr<System::Xml::XmlResolver>& | The XmlResolver used to resolve namespaces referenced in include and import elements. If this is nullptr, external references are not resolved. |
ReturnValue
The XmlSchema added to the schema collection.
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class XmlResolver
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++
XmlSchemaCollection::Add(const SharedPtr<XmlSchemaCollection>&) method
Adds all the namespaces defined in the given collection (including their associated schemas) to this collection.
void System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchemaCollection> &schema)
Parameter | Type | Description |
---|---|---|
schema | const SharedPtr<XmlSchemaCollection>& | The XmlSchemaCollection you want to add to this collection. |
See Also
- Typedef SharedPtr
- Class XmlSchemaCollection
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++
XmlSchemaCollection::Add(const String&, const SharedPtr<XmlReader>&) method
Adds the schema contained in the XmlReader to the schema collection.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const SharedPtr<XmlReader> &reader)
Parameter | Type | Description |
---|---|---|
ns | const String& | The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. |
reader | const SharedPtr<XmlReader>& | XmlReader containing the schema to add. |
ReturnValue
The XmlSchema added to the schema collection; nullptr if the schema being added is an XDR schema or if there are compilation errors in the schema.
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlReader
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++
XmlSchemaCollection::Add(const String&, const SharedPtr<XmlReader>&, const SharedPtr<System::Xml::XmlResolver>&) method
Adds the schema contained in the XmlReader to the schema collection. The specified XmlResolver is used to resolve any external resources.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const SharedPtr<XmlReader> &reader, const SharedPtr<System::Xml::XmlResolver> &resolver)
Parameter | Type | Description |
---|---|---|
ns | const String& | The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. |
reader | const SharedPtr<XmlReader>& | XmlReader containing the schema to add. |
resolver | const SharedPtr<System::Xml::XmlResolver>& | The XmlResolver used to resolve namespaces referenced in include and import elements or x-schema attribute (XDR schemas). If this is nullptr, external references are not resolved. |
ReturnValue
The XmlSchema added to the schema collection; nullptr if the schema being added is an XDR schema or if there are compilation errors in the schema.
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlReader
- Class XmlResolver
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++
XmlSchemaCollection::Add(const String&, const String&) method
Adds the schema located by the given URL into the schema collection.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const String &ns, const String &uri)
Parameter | Type | Description |
---|---|---|
ns | const String& | The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace. |
uri | const String& | The URL that specifies the schema to load. |
ReturnValue
The XmlSchema added to the schema collection; nullptr if the schema being added is an XDR schema or if there are compilation errors in the schema.
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlSchemaCollection
- Namespace System::Xml::Schema
- Library Aspose.Page for C++