我试图在excel中导入xml,但它向我显示错误的数据。这段代码出了什么问题? 在示例数据.XML文件中,excel在P单元格中返回数字2 intead 2.000,并在单元格G-9,82中返回9.820。不知道为什么这个点正在变成逗号。
<?xml version="1.0" encoding="UTF-8" ?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Created>2016-8-24T12:5:30Z</Created>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<DownloadComponents/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>8892</WindowHeight>
<WindowWidth>15132</WindowWidth>
<WindowTopX>96</WindowTopX>
<WindowTopY>24</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s73">
<Borders>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
</Borders>
</Style>
</Styles>
<Worksheet ss:Name= "Sheet1">
<Table ss:ExpandedColumnCount="16" ss:ExpandedRowCount="15" x:FullColumns="1" x:FullRows="1" ss:DefaultRowHeight="14.4">
<Column ss:AutoFitWidth="0" ss:Width="151"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="79"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="51"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="56"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="54"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Column ss:AutoFitWidth="0" ss:Width="50"/>
<Row>
<Cell ss:StyleID="s73"><Data ss:Type="String">MARY</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">6</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">63</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">9.820</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">43</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">699</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">148</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">33</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">26</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">0</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">2.000</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>