This is a migrated thread and some comments may be shown as answers.

export silverlight datagrid to simple xml in c#

0 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
aimen
Top achievements
Rank 1
aimen asked on 14 Feb 2012, 07:59 PM
how to export Silverlight datagrid in simple xml format..

i exported in it excel-xml format but this is not what i require...
what i want it this
<root>
<Task>
<name> abc</name>
<start> 12/16/2011 9:47:18 AM  </start>
<end> 12/16/2011 9:47:18 AM </end>
</Task>
</root>


what i m gettign is this excel-xml format
[i followed this link http://www.codeproject.com/Articles/45731/Export-Silverlight-DataGrid-to-Excel-XML-CSV ]

<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet">
<Worksheet ss:Name="Silverlight Export" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
<Table>
<Row>
<Cell><Data ss:Type="String">Subject</Data></Cell>
<Cell><Data ss:Type="String">Body</Data></Cell>
<Cell><Data ss:Type="String">Start</Data></Cell>
<Cell><Data ss:Type="String">End</Data></Cell>
<Cell><Data ss:Type="String">IsAllDayEvent</Data></Cell>
<Cell><Data ss:Type="String">IsCompleted</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">abc       </Data></Cell>
<Cell><Data ss:Type="String">defff</Data></Cell>
<Cell><Data ss:Type="String">12/16/2011 9:47:18 AM</Data></Cell>
<Cell><Data ss:Type="String">12/16/2011 9:47:18 AM</Data></Cell>
<Cell><Data ss:Type="String">False</Data></Cell>
<Cell><Data ss:Type="String">False</Data></Cell>
</Row>

<Row>
<Cell><Data ss:Type="String">ssss      </Data></Cell>
<Cell><Data ss:Type="String">ssss</Data></Cell>
<Cell><Data ss:Type="String">1/1/2012 12:00:00 AM</Data></Cell>
<Cell><Data ss:Type="String">1/1/2013 12:00:00 AM</Data></Cell>
<Cell><Data ss:Type="String">False</Data></Cell>
<Cell><Data ss:Type="String">False</Data></Cell>
</Row>
</Table>
</Worksheet>
</Workbook>


any way/demo/tutorial available to help me with this? :(?
Tags
General Discussions
Asked by
aimen
Top achievements
Rank 1
Share this question
or