sub Page_Load if Not Page.IsPostBack then dim myproducts=New DataSet myproducts.ReadXml("http://api.example.com/1.0/products.xml") products.DataSource=myproducts products.DataBind() end if end sub </script> <html> <body> <form runat="server"> <asp:Repeater id="products" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>name</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <div>City: <%#Container.DataItem("name")%></div> </ItemTemplate>
<result xmlns="urn:com:example:pf:model:xml:output" xmlns:ns2="urn:com:tradedoubler:pf:model:xml:common" version="3.0"> <productHeader>...</productHeader> <products> <product language="en">...</product> <product language="en"> <ns2:name>Pisa Holidays</ns2:name> <ns2:description>Pisa Holidays</ns2:description> <ns2:productImage> http://me.jpg </ns2:productImage> <ns2:categories>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)