java技术-xml解析
- 待解析xml文件
<?xml version="1.0" encoding="UTF-8"?>
<root>
<TABLE type="blog" sheetName="sheet1">
<INDEXPART id="Hardware Manufacturer Name" startRow="35" startCol="3" >apple</INDEXPART>
<INDEXPART id="Power Supply Type" startRow="36" startCol="3" >DC</INDEXPART>
<INDEXPART id="Subrack type" startRow="37" startCol="3" >3U</INDEXPART>
<INDEXPART id="Board Model" startRow="38" startCol="3" >GPUA8</INDEXPART>
<INDEXPART id="Number of subracks in each cabinet" startRow="39" startCol="3" >8</INDEXPART>
<INDEXPART id="Number of boards in each subrack" startRow="40" startCol="3" >4</INDEXPART>
<INDEXPART id="Number of CPUs per board" startRow="41" startCol="3" >2</INDEXPART>
</TABLE>
</root>
- 解析的实体类定义
public class ExcelParamConfig {
private String type;
private String sheetName;
private String indexPartId;
private int startRow;