I'm writing an xml file to be consumed by excel.
excel wants this:
<Cell><Data ss:Type="Number">25</Data></Cell>
I'm writing this...
<Cell>
<Data ss:Type="Number">25</Data>
</Cell>
I get that EXCEL is picky, but since I'm using XElelments, how do i control the formatting of the output?
here is my code to write a cell.
foreach( var propertyInfo in fi )
{
XElement oneCell = new XElement( root + "Cell",
new XElement( root + "Data",
new XAttribute( ss + "Type", "String" ), propertyInfo.GetValue( cv, null )
)
);
oneRow.Add( oneCell );
}
How do i get that to output the cell and data on the same line?
Thanks,
Cal-