<%@ Import Namespace="System.Data" %>
<html>
<title>Retrieving XML Data Into a DataSet</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server" src="displayData.cs" />
<script language="C#" runat="server">
protected void Page_Load ( object src, EventArgs e ) {
// initialize dataset object
DataSet myData = new DataSet ( );
// read xml file into dataset
myData.ReadXml ( Server.MapPath ( "~/adonet/demos/authors.xml" ) );
// call method to display dataset contents into html table
displayData ( myData );
}
</script>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>ADO.NET Primer: Retrieving <b>XML</b> Data Into a DataSet</h2></div>
<!-- #include virtual="~/shared/viewsrc_top.inc" -->
<hr size=1 width=92%>
<form runat="server">
<p align="center">
<%= html %>
</p>
</form>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>