XmlMaps.Add method (Excel)

Adds an XML map to the specified workbook.


expression.Add (Schema, RootElementName)

expression An expression that returns an XmlMaps object.


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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.