Share via


XmlMaps.Add Method

Excel Developer Reference

Adds an XML map to the specified workbook.

Syntax

expression.Add(Schema, RootElementName)

expression   An expression that returns a XmlMaps object.

Parameters

Name Required/Optional Data Type Description
Schema Required String The schema to be added as an XML map. The string can be a path to a schema file, or the schema itself. The path can be specified in the Universal Naming Convention (UNC) or Uniform Resource Locator (URL) format.
RootElementName Optional Variant The name of the root element. This argument can be ignored if the schema contains only one root element.

Return Value
An XmlMap object that represents the new XML map.

See Also