在配置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>
原文地址:https://www.cnblogs.com/michaeljunlove/p/3924552.html