type Element [XML Mapper Schema]
Collapse the table of content
Expand the table of content

type Element [XML Mapper Schema]

SharePoint 2010

Last modified: June 22, 2010

Applies to: SharePoint Server 2010

    <type>variantTypeValue</type>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

XMLPropertiesCreator

Specifies the parent element for XML Mapper configuration.

Variant type 31 (string) is the only supported value. If you specify a variant type other than string, the item processing pipeline will attempt to transform the text content in the XML to the specified type (for example, to a number or a date).

Only one element is permitted.

The default property set can be overridden by the individual Mapping and MappingGroup elements by using the type attribute.

The following example creates a crawled property that has property set d6ee4933-09c4-46e3-a5e4-b3787cb4a090, variant type 31 (string), and property name mytitle.

<XMLPropertiesCreator>
  <propset>d6ee4933-09c4-46e3-a5e4-b3787cb4a090</propset>
  <type>31</type>
  <XMLMappings>
    <Mapping attr="mytitle" path="//title"/>
  </XMLMappings>
</XMLPropertiesCreator>

The crawled property will be created only if the XPath expression "//title" matches the crawled XML item.

Show:
© 2016 Microsoft