System::Xml::Schema::XmlSchemaCollection class

XmlSchemaCollection class

Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas.

class XmlSchemaCollection : public System::Collections::Generic::IEnumerable<SharedPtr<System::Xml::Schema::XmlSchema>>

Methods

MethodDescription
Add(const String&, const String&)Adds the schema located by the given URL into the schema collection.
Add(const String&, const SharedPtr<XmlReader>&)Adds the schema contained in the XmlReader to the schema collection.
Add(const String&, const SharedPtr<XmlReader>&, const SharedPtr<System::Xml::XmlResolver>&)Adds the schema contained in the XmlReader to the schema collection. The specified XmlResolver is used to resolve any external resources.
Add(const SharedPtr<XmlSchema>&)Adds the XmlSchema to the collection.
Add(const SharedPtr<XmlSchema>&, const SharedPtr<System::Xml::XmlResolver>&)Adds the XmlSchema to the collection. The specified XmlResolver is used to resolve any external references.
Add(const SharedPtr<XmlSchemaCollection>&)Adds all the namespaces defined in the given collection (including their associated schemas) to this collection.
Contains(const SharedPtr<XmlSchema>&)Returns a value indicating whether the targetNamespace of the specified XmlSchema is in the collection.
Contains(const String&)Returns a value indicating whether a schema with the specified namespace is in the collection.
CopyTo(const ArrayPtr<SharedPtr<XmlSchema>>&, int32_t)Copies all the XmlSchema objects from this collection into the given array starting at the given index.
get_Count()Returns the number of namespaces defined in this collection.
get_NameTable()Returns the default XmlNameTable used by the XmlSchemaCollection when loading new schemas.
GetEnumerator() overrideProvides support for iteration over the collection of schemas.
idx_get(const String&)Returns the XmlSchema associated with the given namespace URI.
XmlSchemaCollection()Initializes a new instance of the XmlSchemaCollection class.
XmlSchemaCollection(const SharedPtr<XmlNameTable>&)Initializes a new instance of the XmlSchemaCollection class with the specified XmlNameTable. The XmlNameTable is used when loading schemas.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Deprecated

The XmlSchemaCollection class is obsolete. Use XmlSchemaSet instead.

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also