EDN Admin
Well-known member
I want to display my xml file in datagrid but there is a problem while displaying inside of <annPubDate> tag because it has 2 sub elements <annTime> and <annDate>. I want to display these elements. Please help me !!
This is my xml file: <font color="#0000ff
<address><font size=2><?</font></font><font size=2><font color="#800000 xml</font><font color="#0000ff </font><font color="#ff0000 version</font><font color="#0000ff =</font>"<font color="#0000ff 1.0</font>"<font color="#0000ff </font><font color="#ff0000 encoding</font><font color="#0000ff =</font>"<font color="#0000ff iso-8859-9</font>"</font><font color="#0000ff <font size=2>?></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPanel</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annID</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annTitle</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annBody</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annDate</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annTime</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annID</font><font color="#0000ff ></font>1<font color="#0000ff </</font><font color="#800000 annID</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTitle</font><font color="#0000ff ></font>asdas<font color="#0000ff </</font><font color="#800000 annTitle</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annBody</font><font color="#0000ff ></font>asd<font color="#0000ff </</font><font color="#800000 annBody</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annDate</font><font color="#0000ff ></font>11 / 8 / 2006<font color="#0000ff </</font><font color="#800000 annDate</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTime</font><font color="#0000ff ></font>11:48:5<font color="#0000ff </</font><font color="#800000 annTime</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annID</font><font color="#0000ff ></font>2<font color="#0000ff </</font><font color="#800000 annID</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTitle</font><font color="#0000ff ></font>asdas<font color="#0000ff </</font><font color="#800000 annTitle</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annBody</font><font color="#0000ff ></font>asd<font color="#0000ff </</font><font color="#800000 annBody</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>> ---> This Part</font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annDate</font><font color="#0000ff ></font>11 / 8 / 2006<font color="#0000ff </</font><font color="#800000 annDate</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTime</font><font color="#0000ff ></font>11:48:8<font color="#0000ff </</font><font color="#800000 annTime</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>> ---> End of <annPubDate></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=1></</font></font><font size=1><font color="#800000 ann</font><font color="#0000ff" size=2>></font></font></address>
<address><font color="#0000ff" size=2></font> </address>
<address><font color="#0000ff" size=2>In this xml file i want to display the <annDate> and <annTime> in seperate coloumns in datagrid view by using xsl schema</font></address>
<address><font size=1><font color="#0000ff" size=2></font></font> </address>
<font size=1><font color="#0000ff" size=2><font size=3>And This is my XSL file:</font></font></font> <font size=1><font color="#0000ff" size=2><font color="#0000ff" size=2>
<address><?</font><font color="#800000" size=2>xml</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>1.0</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>?></address>
<address><</font><font color="#008080" size=2>xsl:stylesheet</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>1.0</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsl</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/1999/XSL/Transform</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsi</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/2001/XMLSchema-instance</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsd</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/2001/XMLSchema</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:msxsl</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>urn:schemas-microsoft-com:xslt</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:strip-space</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>elements</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>*</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address><</font><font color="#008080" size=2>xslutput</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>method</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>xml</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>omit-xml-declaration</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>indent</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>standalone</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> /></address>
<address><</font><font color="#008080" size=2>xsl:template</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>match</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPanel</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPanel</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>ann</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>ann</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annID</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annID</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTitle</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTitle</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annBody</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annBody</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address> </address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPubDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>> --->I think the problem is here but i dont know what is it...</address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPubDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTime</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTime</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>> ---> End </address>
<address> </address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPriority</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPriority</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annSender</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annSender</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:template</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:stylesheet</font><font color="#0000ff" size=2>></address></font></font></font>
View the full article
This is my xml file: <font color="#0000ff
<address><font size=2><?</font></font><font size=2><font color="#800000 xml</font><font color="#0000ff </font><font color="#ff0000 version</font><font color="#0000ff =</font>"<font color="#0000ff 1.0</font>"<font color="#0000ff </font><font color="#ff0000 encoding</font><font color="#0000ff =</font>"<font color="#0000ff iso-8859-9</font>"</font><font color="#0000ff <font size=2>?></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPanel</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annID</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annTitle</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annBody</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annDate</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annTime</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annID</font><font color="#0000ff ></font>1<font color="#0000ff </</font><font color="#800000 annID</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTitle</font><font color="#0000ff ></font>asdas<font color="#0000ff </</font><font color="#800000 annTitle</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annBody</font><font color="#0000ff ></font>asd<font color="#0000ff </</font><font color="#800000 annBody</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annDate</font><font color="#0000ff ></font>11 / 8 / 2006<font color="#0000ff </</font><font color="#800000 annDate</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTime</font><font color="#0000ff ></font>11:48:5<font color="#0000ff </</font><font color="#800000 annTime</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>ann</font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annID</font><font color="#0000ff ></font>2<font color="#0000ff </</font><font color="#800000 annID</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTitle</font><font color="#0000ff ></font>asdas<font color="#0000ff </</font><font color="#800000 annTitle</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annBody</font><font color="#0000ff ></font>asd<font color="#0000ff </</font><font color="#800000 annBody</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>> ---> This Part</font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annDate</font><font color="#0000ff ></font>11 / 8 / 2006<font color="#0000ff </</font><font color="#800000 annDate</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2><</font></font><font size=2><font color="#800000 annTime</font><font color="#0000ff ></font>11:48:8<font color="#0000ff </</font><font color="#800000 annTime</font></font><font color="#0000ff <font size=2>></font></address>
<address><font size=2></</font></font><font color="#800000" size=2>annPubDate</font><font color="#0000ff <font size=2>> ---> End of <annPubDate></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annPriority</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=2><</font></font><font color="#800000" size=2>annSender</font><font color="#0000ff <font size=2> /></font></address>
<address><font size=1></</font></font><font size=1><font color="#800000 ann</font><font color="#0000ff" size=2>></font></font></address>
<address><font color="#0000ff" size=2></font> </address>
<address><font color="#0000ff" size=2>In this xml file i want to display the <annDate> and <annTime> in seperate coloumns in datagrid view by using xsl schema</font></address>
<address><font size=1><font color="#0000ff" size=2></font></font> </address>
<font size=1><font color="#0000ff" size=2><font size=3>And This is my XSL file:</font></font></font> <font size=1><font color="#0000ff" size=2><font color="#0000ff" size=2>
<address><?</font><font color="#800000" size=2>xml</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>1.0</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>?></address>
<address><</font><font color="#008080" size=2>xsl:stylesheet</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>version</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>1.0</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsl</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/1999/XSL/Transform</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsi</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/2001/XMLSchema-instance</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:xsd</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>http://www.w3.org/2001/XMLSchema</font><font size=2><font color="#000000 "</font></address></font><font size=2>
<address></font><font color="#ff0000" size=2>xmlns:msxsl</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>urn:schemas-microsoft-com:xslt</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:strip-space</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>elements</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>*</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address><</font><font color="#008080" size=2>xslutput</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>method</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>xml</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>omit-xml-declaration</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>indent</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>standalone</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>yes</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2> /></address>
<address><</font><font color="#008080" size=2>xsl:template</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>match</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPanel</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPanel</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>ann</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>ann</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annID</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annID</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTitle</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTitle</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annBody</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annBody</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address> </address>
<address><</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPubDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>> --->I think the problem is here but i dont know what is it...</address>
<address><</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPubDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annDate</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTime</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annTime</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>> ---> End </address>
<address> </address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPriority</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annPriority</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>name</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annSender</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>></address>
<address><</font><font color="#008080" size=2>xsl:value-of</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2>select</font><font color="#0000ff" size=2>=</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>annSender</font><font color="#000000" size=2>"</font><font color="#0000ff" size=2>/></address>
<address></</font><font color="#008080" size=2>xsl:attribute</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:element</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:for-each</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:template</font><font color="#0000ff" size=2>></address>
<address></</font><font color="#008080" size=2>xsl:stylesheet</font><font color="#0000ff" size=2>></address></font></font></font>
View the full article