当前位置: 代码迷 >> 综合 >> The content of elements must consist of well-formed character data or markup.
  详细解决方案

The content of elements must consist of well-formed character data or markup.

热度:47   发布时间:2024-02-01 00:16:58.0

The content of elements must consist of well-formed character data or markup.

错误信息如下:

在这里插入图片描述

错误原因:

  • 编写xml时,里面出现了特殊字符
    在这里插入图片描述

解决方法:

  • 使用xml中的转义字符进行转换
.... <= 30 ORDER BY `pro_time` DESC
  • 使用<![CDATA[ ]]>符号进行说明,将此类符号不进行解析
<![CDATA[ WHERE DATEDIFF(NOW(),`pro_time`) <= 30 ]]>   

MySQL常用转义字符表

在这里插入图片描述

  相关解决方案