MapInfo Class

XML Mapping. It is the root element of CustomXmlMappingsPart.When the object is serialized out as xml, its qualified name is x:MapInfo.

Inheritance Hierarchy


Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


<ChildElementInfoAttribute(GetType(Schema))> _
<ChildElementInfoAttribute(GetType(Map))> _
Public Class MapInfo _
    Inherits OpenXmlPartRootElement
Dim instance As MapInfo
public class MapInfo : OpenXmlPartRootElement


The following table lists the possible child types:

  • Schema <x:Schema>

  • Map <x:Map>

[ISO/IEC 29500-1 1st Edition]

18.16.3 MapInfo (XML Mapping)

This element acts as the container for all of the XML schemas and maps attached to the SpreadsheetML document.

Parent Elements

Root element of SpreadsheetML Custom XML Mappings part

Child Elements


Map (XML Mapping Properties)


Schema (XML Schema)




SelectionNamespaces (Prefix Mappings for XPath Expressions)

Specifies namespaces for use in XPath expressions when it is necessary to define new namespaces externally. Namespaces are defined in the XML style, as a space-separated list of namespace declaration attributes

[Example: The following example contains elements that belong to "a" and "b", in addition to elements that do not belong to any namespace.

<?xml version="1.0"?>
<a:root xmlns:a="">
<b:branch xmlns:b="">

end example]

This is used when writing Xpath expressions at runtime against the XML instance structures, because the Xpath expressions use namespace prefixes instead of the fully spelled out namespace.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_MapInfo) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


MapInfo Members

DocumentFormat.OpenXml.Spreadsheet Namespace