加载data.xml到DataGridView控件
(1)做一个WinForm 的应用程序,加载data.xml到Grid控件。 XML文件中<record>是行,cell 是列。 (2)将上一个题中Grid的行列进行转换 xml如下: <?xml version="1.0" encoding="UTF-8"?> <cbrc-ml> <gather type="helpstudy-break-loan" name="助学贷款违约情况统计表" version="20060712" no="银监统临[2006] 008 号" dept="银监会统计部" currency="" currency-unit=""> <report org="C001H101110102001" year="2008" month="06" fill="李四" phone="01051527500" verify="李贵芬"> <table type="many" code="helpstudy-break-loan" desc="助学贷款违约情况统计表"> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三ffff</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四24</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">中关村小学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三123</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四bbb</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三aaa</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">清华附中</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">南开大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三h</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四a</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三k</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四j</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三h</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">清华大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四g</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三e</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">南开大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四f</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京理工大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三d</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">北京一中</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四c</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">清华附中</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">张三b</cell> <cell name="customer-area">北京市海淀区知春路45号</cell> <cell name="region-code">110000</cell> <cell name="school-name">中关村小学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">8000</cell> <cell name="bank-code">C003B101110000001</cell> <cell name="send-time">2008-03-01</cell> <cell name="loan-type">1</cell> <cell name="break-time">121</cell> </record> <record> <cell name="identification-type">A</cell> <cell name="customer-code">110101196206170100</cell> <cell name="student-code">20081100</cell> <cell name="customer-name">李四a</cell> <cell name="customer-area">北京市宣武区2号院3单元11楼</cell> <cell name="region-code">110000</cell> <cell name="school-name">清华大学</cell> <cell name="school-area">北京市海淀区学院南路55号</cell> <cell name="school-code">110000</cell> <cell name="fund-code">25000</cell> <cell name="bank-code">C001B101110000001</cell> <cell name="send-time">2007-09-15</cell> <cell name="loan-type">1</cell> <cell name="break-time">289</cell> </record> </table> </report> </gather> </cbrc-ml>
- 1
- jiaowao2013-01-04很好,正好能用
- fdp392013-09-27黑黑的一块,都看不见啊
- cs_1600152012-09-20描述详实,好评
- 粉丝: 8
- 资源: 25
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助