在配置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>

 

posted on 2014-08-20 14:35  michaeljunlove  阅读(201)  评论(0编辑  收藏  举报

导航