I have an XML file with a table in the below format,
- <TABLE>
-
<TR>
-
<TH>EVENT</TH>
-
<TH>SUMMARY</TH>
-
</TR>
-
<TR>
-
<TD>US approval of Xience V</TD>
-
<TD>Xience V is the first drug-eluting stent to demonstrate superiority over another DES in the primary endpoint of in- segment late loss, in the randomized controlled head-to-head SPIRIT III trial, and received FDA approval in July 2008. Morgan Stanley analysts expect US sales of $700m as early as 2009. Credit Suisse forecast sales of more than $1bn in 2009. Xience V could boost Abbott's annual revenue growth by 1% and EPS growth by 5%.</TD>
-
</TR>
-
</TABLE>
I need to write this XML table in a text file in the below format,
EVENT SUMMARY \
Acquisition of Guidant's Abbott expected to find respite \
vascular business from a volatile pharmaceutical \
market by acquiring Guidant's \
vascular business for $3.8 \
billion in a deal closed in \
April 2006. Morgan Stanley \
analysts suggest the deal will \
secure 10% earnings growth for \
Abbott for the next four years. \
Points to be noted:
Number of characters in a line should not exceed 67.
columns should be equally splitted and the values in the cell should be wrapped to fit into the width of the column.
each line should have "\" at the end.
I have attached the output file with this for your reference.
Please give me some idea on how to do this conversion using C# or XSLT??
your help is much appreciated.