<%@ Import Namespace="System.Data"%>
<%@ Import Namespace="System.XML"%>
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim strURL As String
Dim ds As New DataSet()
strURL = Server.MapPath("XML/news.xml")
'strURL = "https://www.thaicreate.com/news.xml" '*** Feed From Other Website ***'
Dim reader as XmlTextReader = New XmlTextReader(strURL)
ds.ReadXml(reader)
'*** BindData to Repeater ***'
myRepeater.DataSource = ds
myRepeater.DataBind()
ds = Nothing
End Sub
</script>
<html>
<head>
<title>ThaiCreate.Com ASP.NET - XML</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Repeater id="myRepeater" runat="server">
<ItemTemplate>
<a href="<%#Container.DataItem("Link") %>" target="blank"><%#Container.DataItem("Subject") %></a><br />
</ItemTemplate>
</asp:Repeater>
</form>
</body>
</html>