Add()
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)
Arguments
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. |
Return Value
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.
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)
Arguments
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. |
Return Value
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.
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)
Arguments
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. |
Return Value
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.
XmlSchemaCollection::Add(const SharedPtr<XmlSchema>&) method
Adds the XmlSchema to the collection.
SharedPtr<XmlSchema> System::Xml::Schema::XmlSchemaCollection::Add(const SharedPtr<XmlSchema> &schema)
Arguments
Parameter | Type | Description |
---|---|---|
schema | const SharedPtr<XmlSchema>& | The XmlSchema to add to the collection. |
Return Value
The XmlSchema object.
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)
Arguments
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. |
Return Value
The XmlSchema added to the schema collection.
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)
Arguments
Parameter | Type | Description |
---|---|---|
schema | const SharedPtr<XmlSchemaCollection>& | The XmlSchemaCollection you want to add to this collection. |
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class String
- Class XmlSchemaCollection
- Class XmlReader
- Class XmlResolver
- Namespace System::Xml::Schema
- Library Aspose.Slides