xml format in asp.net
<p>I have a table in sqlserver, in that table i have a column having xml file. i am displaying that table in gridview. when we click on button i want to display that particular xml column file column in a xml format. tank you.
i take one dtalist and writ code like this.</p>

<pre><code>&lt;asp:DataList ID="dtlstOne" runat ="server" &gt;
    &lt;ItemTemplate &gt;
        &lt;asp:TextBox ID="txtname" runat ="server" Text ='&lt;%# XPath("/EXTPOSTTRANSACTION/STLTRANSACTIONINFO/TRANSACTIONTYPE")%&gt;' &gt;&lt;/asp:TextBox&gt;
        &lt;asp:TextBox ID="TextBox1" runat ="server" Text ='&lt;%# XPath("/EXTPOSTTRANSACTION/STLTRANSACTIONINFO/USERID")%&gt;' &gt;&lt;/asp:TextBox&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:DataList&gt;
</code></pre>

<p>it is giving error</p>

<pre><code>An exception of type 'System.ArgumentException' occurred in System.Web.dll but was not handled in user code
Additional information: XPath DataBinding: 'System.Data.DataRowView' must implement IXPathNavigable.
</code></pre>

<p>please can u help me</p>

<pre><code>string sqry = "select NewLoanRequestXML from tbl_newloanxml where newloanid=" + Request.QueryString["id"].ToString();

da = new SqlDataAdapter(sqry, con);
ds = new DataSet();
da.Fill(ds);       

if (ds.Tables[0].Rows.Count &gt; 0)
{
    dtlstOne.DataSource = ds;
    dtlstOne.DataBind();
}
</code></pre>
