c++如何改XML文件的内容
2个回答
展开全部
<?xml version="1.0"?>
<?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">
<LastAuthor>Mr.X</LastAuthor>
<Created>2011-09-21T08:38:06Z</Created>
<LastSaved>2011-09-29T06:00:28Z</LastSaved>
<Version>12.00</Version>
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>10005</WindowHeight>
<WindowWidth>10005</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>135</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s62">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
<Style ss:ID="s63">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
<Style ss:ID="s64">
<Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
</Style>
<Style ss:ID="s65">
<Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
<Borders/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
</Styles>
<Worksheet ss:Name="Page 1">
<Table ss:ExpandedColumnCount="6" ss:ExpandedRowCount="5" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25">
<Column ss:AutoFitWidth="0" ss:Width="125.25"/>
<Column ss:AutoFitWidth="0" ss:Width="111"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="99"/>
<Column ss:AutoFitWidth="0" ss:Width="67.5"/>
<Column ss:AutoFitWidth="0" ss:Width="141"/>
<Column ss:AutoFitWidth="0" ss:Width="117"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s64"><Data ss:Type="String">电子监控交通违章公告</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">号牌号码</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">号牌类型</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章类型</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章地点</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章时间</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30589</Data></Cell>
<Cell ss:StyleID="s63"><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0809:36:29</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30589</Data></Cell>
<Cell><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0815:49:58</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30579</Data></Cell>
<Cell ss:StyleID="s63"><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0917:44:07</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E20798</Data></Cell>
<Cell><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-1009:14:55</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Unsynced/>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>7</ActiveRow>
<ActiveCol>5</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
<AllowFormatCells/>
<AllowSizeCols/>
<AllowSizeRows/>
</WorksheetOptions>
</Worksheet>
</Workbook>
<?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">
<LastAuthor>Mr.X</LastAuthor>
<Created>2011-09-21T08:38:06Z</Created>
<LastSaved>2011-09-29T06:00:28Z</LastSaved>
<Version>12.00</Version>
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>10005</WindowHeight>
<WindowWidth>10005</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>135</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s62">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
<Style ss:ID="s63">
<Alignment ss:Vertical="Center"/>
<Borders/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
<Style ss:ID="s64">
<Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
</Style>
<Style ss:ID="s65">
<Alignment ss:Horizontal="Center" ss:Vertical="Center"/>
<Borders/>
<Interior/>
<NumberFormat/>
<Protection ss:Protected="0"/>
</Style>
</Styles>
<Worksheet ss:Name="Page 1">
<Table ss:ExpandedColumnCount="6" ss:ExpandedRowCount="5" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25">
<Column ss:AutoFitWidth="0" ss:Width="125.25"/>
<Column ss:AutoFitWidth="0" ss:Width="111"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="99"/>
<Column ss:AutoFitWidth="0" ss:Width="67.5"/>
<Column ss:AutoFitWidth="0" ss:Width="141"/>
<Column ss:AutoFitWidth="0" ss:Width="117"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s64"><Data ss:Type="String">电子监控交通违章公告</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">号牌号码</Data></Cell>
<Cell ss:StyleID="s65"><Data ss:Type="String">号牌类型</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章类型</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章地点</Data></Cell>
<Cell ss:StyleID="s64"><Data ss:Type="String">违章时间</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30589</Data></Cell>
<Cell ss:StyleID="s63"><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0809:36:29</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30589</Data></Cell>
<Cell><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0815:49:58</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E30579</Data></Cell>
<Cell ss:StyleID="s63"><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-0917:44:07</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:Index="2"><Data ss:Type="String">贵E20798</Data></Cell>
<Cell><Data ss:Type="String">大型汽车</Data></Cell>
<Cell><Data ss:Type="String">乱停乱放</Data></Cell>
<Cell><Data ss:Type="String">沙井街/北京路</Data></Cell>
<Cell><Data ss:Type="String">2004-06-1009:14:55</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Unsynced/>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>7</ActiveRow>
<ActiveCol>5</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
<AllowFormatCells/>
<AllowSizeCols/>
<AllowSizeRows/>
</WorksheetOptions>
</Worksheet>
</Workbook>
展开全部
看看我提问过的问题。
C++ XML的DOM操作,处理小文件速度快,使用方便。
其实如果修改的话,事件驱动最好用SAX,处理大文件速度快,结构性好。
http://zhidao.baidu.com/question/500978118
C++ XML的DOM操作,处理小文件速度快,使用方便。
其实如果修改的话,事件驱动最好用SAX,处理大文件速度快,结构性好。
http://zhidao.baidu.com/question/500978118
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询