im trying to read an xml file which is in the wwwroot folder.im using IIS on
XP Prof.
my code is
--------------------------------------------------------------------------------------------------------
<%@ Page Language="VB" Debug="true" codePage="28599" %>
<script runat="server">
Sub Page_Load(Sender as Object,E As EventArgs)
dim okuyucu as XMLTextReader
okuyucu=new XMLTextReader(Server.MapPath("comments.xml"))
while okuyucu.Read()
Response.Write("<b>" & okuyucu.Name & "</b>" & okuyucu.Value & "<br>")
End While
okuyucu.close
End Sub
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset=iso-8859-9">
</head>
<body>
</body>
</html
---------------------------------------------------------------------------------------------------------
but i get the following error message,why?
---------------------------------------------------------------------------------------------------------
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'XMLTextReader' is not defined.
Source Error:
Line 2: <script runat="server">
Line 3: Sub Page_Load(Sender as Object,E As EventArgs)
Line 4: dim okuyucu as XMLTextReader
Line 5: okuyucu=new XMLTextReader(Server.MapPath("comments.xml"))
Line 6:
Source File: c:\inetpub\wwwroot\XMLRead.aspx Line: 4
---------------------------------------------------------------------------------------------------------