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

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.

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

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.

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

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.

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

ParameterTypeDescription
schemaconst 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

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.

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

ParameterTypeDescription
schemaconst SharedPtr<XmlSchemaCollection>&The XmlSchemaCollection you want to add to this collection.

See Also