Compartilhar via


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

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Spreadsheet.MapInfo

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Schema))> _
<ChildElementInfoAttribute(GetType(Map))> _
Public Class MapInfo _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As MapInfo
[ChildElementInfoAttribute(typeof(Schema))]
[ChildElementInfoAttribute(typeof(Map))]
public class MapInfo : OpenXmlPartRootElement

Remarks

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.

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

Reference

MapInfo Members

DocumentFormat.OpenXml.Spreadsheet Namespace