XmlMaps.Add Method

Adds an XML map to the specified workbook. Returns an XmlMap object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    Schema As String, _
    RootElementName As Object _
) As XmlMap
'Usage
Dim instance As XmlMaps
Dim Schema As String
Dim RootElementName As Object
Dim returnValue As XmlMap

returnValue = instance.Add(Schema, RootElementName)
XmlMap Add(
    string Schema,
    Object RootElementName
)

Parameters

  • Schema
    Type: System.String

    Required String. The schema to be added as an XML map. The string can be a path to a schema file, or to the schema itself. The path can be specified in the Universal Naming Convention (UNC) or Uniform Resource Locator (URL) format.

  • RootElementName
    Type: System.Object

    Optional String. The name of the root element. This argument can be ignored if the schema contains only one root element.

Return Value

Type: Microsoft.Office.Interop.Excel.XmlMap

Remarks

XML features, except for saving files in the XML Spreadsheet format, are available only in Microsoft Office Professional Edition 2003 and Microsoft Office Excel 2003.

See Also

Reference

XmlMaps Interface

XmlMaps Members

Microsoft.Office.Interop.Excel Namespace