I am an XML newbie and am trying an XML control sample from the QuickStart
web site but with my own XML file. I cannot get it to display the XML on the
web page.
Here is the aspx definition:
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Def ault.aspx.vb"
Inherits="XMLSa mple._Default"% >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>XML</title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:Xml id="xml1" DocumentSource= "AIM.xml" runat="server" />
</form>
</body>
</HTML>
The XML is generated from a SQL FOR XML statement and I cannot change it.
This is one of several XML formats SQL Server generates. I could add an XSL
transform for each XML output, but am not familiar it yet.
Any ideas will be appreciated.
Steve Kallal
web site but with my own XML file. I cannot get it to display the XML on the
web page.
Here is the aspx definition:
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Def ault.aspx.vb"
Inherits="XMLSa mple._Default"% >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>XML</title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:Xml id="xml1" DocumentSource= "AIM.xml" runat="server" />
</form>
</body>
</HTML>
The XML is generated from a SQL FOR XML statement and I cannot change it.
This is one of several XML formats SQL Server generates. I could add an XSL
transform for each XML output, but am not familiar it yet.
Any ideas will be appreciated.
Steve Kallal