在配置XML时报的The reference to entity "dataSource" must end with the ';' delimiter错误

<?xml version="1.0" encoding="UTF-8"?>
<ECharts>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=teacher_sex&dataSource=UTADB</element>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=title-number&dataSource=UTADB</element>
</ECharts>

在配置XML的时,以上代码会报The reference to entity "dataSource" must end with the ';' delimiter错误

解决方案:在&后面加入amp;

<?xml version="1.0" encoding="UTF-8"?>
<ECharts>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=teacher_sex&amp;dataSource=UTADB</element>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=title-number&amp;dataSource=UTADB</element>
</ECharts>
上一篇:python全栈开发 生成器 :生成器函数,推导式及生成器表达式


下一篇:Java & Android Interviews #1