如果传递的是xml,要用<![CDATA[ ]]>将xml注释为字符串
示例
<?xml version="1.0" encoding="UTF-8"?>
<root>
<id>1</id>
<name>Mike</name>
</root>
注释后:
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<root>
<id>1</id>
<name>Mike</name>
</root>]]>
如果传递的是xml,要用<![CDATA[ ]]>将xml注释为字符串
示例
<?xml version="1.0" encoding="UTF-8"?>
<root>
<id>1</id>
<name>Mike</name>
</root>
注释后:
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<root>
<id>1</id>
<name>Mike</name>
</root>]]>