Webgrid with XML data source

3 replies. Last post: November 15, 2010 4:43 PM by Jason Wright
Tags :
  • (None)
Jason WrightMember

I am trying to use the Webgrid to display XML output from an ERP system called Syspro.  The XML output differs to the catalog example that comes with the software.

 

I can get the catalog example to work, but not the attached XML.  I would really appreciate some thoughts on how to setup the web grid to get it to display the Customer and the name fields in the XML string.

 

Thanks,

 

Jason.

All Replies

Sorry, file didn't seem to come across.  Here it is.

Based on my test, it seems XMLDataSource only accept allow data as attribute. In this scenario, you could applu a transform file to translate the text node into an attribute. Attached is the transformation file I used to thest this scenario and here is the XMLDataSource snippet:

<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
DataFile="CustomerData.xml" XPath="Rows/Row"
TransformFile="CustomerTransform.xsl"></asp:XmlDataSource>


 

Yep, see it now.  Thanks for that.

All times are GMT -5. The time now is 11:24 PM.
Previous Next