Home >Backend Development >PHP Tutorial >输出XML时大于小于号有关问题

输出XML时大于小于号有关问题

WBOY
WBOYOriginal
2016-06-13 10:37:241181browse

输出XML时大于小于号问题

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$piclist.='<list id="'.$vp['id'].'" title="" thumb="'.$vp['s_pic'].'" pic="'.$vp['b_pic'].'"></list>';  

输出到XML:
XML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><list id="42" title="" thumb="4f86cf15edfd3.jpg" pic="4f86cf15edfd3.jpg" />

我想要: 如何做到啊?

------解决方案--------------------
这得看你用什么构建的xml。直接echo xml string就行了额
------解决方案--------------------
这两个字符被转换了,你查查是哪个环节转换的。
------解决方案--------------------
使用

输出XML时大于小于号有关问题

]]>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn