Aspose::Cells::XmlMapCollection class

XmlMapCollection class

A collection of XmlMap objects that represent XmlMap information.

class XmlMapCollection

Methods

MethodDescription
Add(const U16String& url)Add a XmlMap by the url/path of a xml/xsd file.
Add(const char16_t* url)Add a XmlMap by the url/path of a xml/xsd file.
Clear()Removes all XmlMaps.
Get(int32_t index)Gets the xml map by the specific index.
GetCount()
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const XmlMapCollection& src)operator=
XmlMapCollection(XmlMapCollection_Impl* impl)Constructs from an implementation object.
XmlMapCollection(const XmlMapCollection& src)Copy constructor.
~XmlMapCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//The following code adds two XmlMaps by a xsd file and a xml file.
Workbook wb;

XmlMapCollection xmlMapCollection = wb.GetWorksheets().GetXmlMaps();

//Add a XmlMap by a xsd file.
xmlMapCollection.Add(u"schema.xsd");

//Add a XmlMap by a xml file.
xmlMapCollection.Add(u"xml.xml");

wb.Save(u"twoXmlMaps.xlsx");
Aspose::Cells::Cleanup();

See Also