This documentation is archived and is not being maintained.

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.

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

[ChildElementInfoAttribute(typeof(Schema))]
[ChildElementInfoAttribute(typeof(Map))]
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

Subclause

Map (XML Mapping Properties)

§18.16.2

Schema (XML Schema)

§18.16.4

Attributes

Description

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"?>
<root>
<branch>branch</branch>
<a:root xmlns:a="http://myserver.com">
<a:branch>a-branch</a:branch>
<b:branch xmlns:b="http://yourserver.com">
b-branch</b:branch>
</a:root>
</root>


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.

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