all groups > dotnet xml > september 2004 >
You're in the

dotnet xml

group:

coping with empty excel cells in the xml document



Re: coping with empty excel cells in the xml document Daniel Sharp
9/28/2004 10:34:24 PM
dotnet xml: connect to excel by ado.net, then export to xml from dataset

regards
daniel #

[quoted text, click to view]

coping with empty excel cells in the xml document Wendy Spray
9/29/2004 11:55:57 AM
Hi
I have an xml document that has been created from an excel spreadsheet. In
the s/s there are some empty cells however these are not captured in the xml
file. All that is added is for the cell after where the empty cell should
be, it has an extra attribute: "ss:Index="6", where it is the 6th cell in
the row, and cell 5 had no entry.

I'm wanting to pick out a particular cell from a particular column however
just iterating through the cells is going to give me invalid values where
there should have been empty cells.

Does anyone know how to handle this?

I've tried checking to see if there are attributes, and if there are if the
name is "ss:Index" and comparing the value of this attribute to a loop
counter i've created however this is very fiddly and long winded.

Thanks
Wend


Re: coping with empty excel cells in the xml document wenz
10/5/2004 9:14:25 AM
Thanks Daniel.
I created the dataset and viewed it in a datagrid and all the null cells
were there fine.
I then saved it to xml using the WriteXml command. The resulting xml file
though doesn't have the extra empty nodes in it. All that is different is
the tags have changed from "Data" to the actual heading for the column.
Am I missing something or is this as good as it gets?

Wend

[quoted text, click to view]

AddThis Social Bookmark Button