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)
ParameterTypeDescription
schemaconst SharedPtr<XmlSchema>&The XmlSchema to add to the collection.

ReturnValue

The XmlSchema object.

See Also

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)
ParameterTypeDescription
schemaconst SharedPtr<XmlSchema>&The XmlSchema to add to the collection.
resolverconst 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

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)
ParameterTypeDescription
schemaconst SharedPtr<XmlSchemaCollection>&The XmlSchemaCollection you want to add to this collection.

See Also

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)
ParameterTypeDescription
nsconst String&The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace.
readerconst 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

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)
ParameterTypeDescription
nsconst String&The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace.
readerconst SharedPtr<XmlReader>&XmlReader containing the schema to add.
resolverconst 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

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)
ParameterTypeDescription
nsconst String&The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace.
uriconst 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