export silverlight datagrid to simple xml in c#

1 posts, 0 answers
  1. aimen
    aimen avatar
    13 posts
    Member since:
    Jul 2011

    Posted 14 Feb 2012 Link to this post

    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? :(?
Back to Top