开发者

using the & char in xml/xsl file

开发者 https://www.devze.com 2023-01-09 23:07 出处:网络
my xml file has the example tag with <tag>value&value</tag> there is an error whe开发者_运维技巧n start the xsl file...

my xml file has the example tag with

<tag>value&value</tag>

there is an error whe开发者_运维技巧n start the xsl file...

I use also &amp and the header

<?xml version="1.0" encoding="iso-8859-1"?>

but not ok

Thanks!


You need to escape the & to &amp; in XML and XSLT:

<tag>value&amp;value</tag>
0

精彩评论

暂无评论...
验证码 换一张
取 消