infoPath statement
The infoPath statement is a specialized list statement that lets you retrieve InfoPath data from both promoted and non-promoted fields.
<infoPath title="" listID="" relativeSiteUrl="" tableName="" expandMultiValuesColumn="" folder="" itemVersions="" multiValuesSeparator="" viewScope="" rowLimit="" paging="" stripHtml="" useDisplayName="" timeZone=""> <fields>...</fields> <itemVersionFields>...</itemVersionFields> <query>...</query> <elementPath contentType="">...</elementPath> </infoPath>Please note that the InfoPath statement only retrieves data for the InfoPath files located in the library. Any other file won’t be retrieved.
InfoPath attributes
Section titled “InfoPath attributes”All the attributes available inside the infoPath statement are the same as the list ones. If you need more information about an attribute, please read the corresponding list attribute documentation.
InfoPath elements
Section titled “InfoPath elements”elementPath
Section titled “elementPath”The elementPath element defines a structure by which the InfoPath statement will flatten the non-promoted fields.
The syntax of the elementPath is similar to the one created by Microsoft for the XML Data Extension for Reporting Services.
You can find more information about this syntax inside the MSDN documentation: http://msdn.microsoft.com/en-us/library/aa964129%28SQL.90%29.aspx
contentType
Section titled “contentType”In case your InfoPath library allows the management of content types, you may have several InfoPath Content Types. This attribute allows you to specify for which content type you want to retrieve data.
Because the InfoPath statement only returns data for a single InfoPath Content Type, this attribute is mandatory if the library contains several InfoPath Content Types.