Problems with XMLDataSource

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The XML data source web part can be used to provide data from an XML file specified by its XML URL property. It uses the Dataset.ReadXml() method to read the XML files. In some cases, this method can separate data from the source XML file into more than one dataset table. In this case, you need to specify the dataset table name in the Table name property.

 

Unfortunately, it can not be explicitly said into what table the required data is loaded. Therefore, we recommend to find it out using the Debug function in Visual Studio.

 

If the Table name property is not specified appropriately in this case, no data is provided to the connected Repeater. It is therefore advisable to disable the Repeater's its Hide if no record found property in order to prevent the repeater from being hidden on the page, which may be confusing in some cases.

 

In some special cases, it may also happen that the required data may be distributed into more than one dataset table. In such case, the Table name property can not be used to solve the issue and the only workaround is to modify the source XML (if possible).

 

devguide_clip0847

 

Page url: http://devnet.kentico.com/docs/devguide/index.html?problems_with_xmldatasource.htm