type Element
Applies to: SharePoint Server 2010
<type>variantTypeValue</type>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
Specifies the parent element for XML Mapper configuration. |
Text Value
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).
Remarks
Only one element is permitted.
The default property set can be overridden by the individual Mapping and MappingGroup elements by using the type attribute.
Example
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.