on 06-09-2008 1:44 PM
Hi all,
in the message mapping for my outgoing XML I put '<![CDATA[[' and ']]]>' around the node-value. During testing it looks fine, but in the actual XML the greater-then (>) and smaller-then(<) signs are replaced by > and < so that the receiving xml-parser just sees it as part of the value-sting...
Is this a known problem? How can I solve this?
Thanks and regards,
William
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello ,
Characters like "<"&" are illegal in XML elements.
So,
To avoid errors script code can be defined as CDATA.
Everything inside a CDATA section is ignored by the parser.
A CDATA section starts with "<![CDATA\" and ends with \"]>":
<b>
<scipt>
<![CDATA[
function matchwo(a,b)
{
if (a < b && a < 0) then
{
return 1;
}
else
{
return 0;
}
}
]]>
</scipt>
In the example above, everything inside the CDATA section is ignored by the parser.
Notes on CDATA sections:
A CDATA section cannot contain the string "]]>". Nested CDATA sections are not allowed.
The "]]>" that marks the end of the CDATA section cannot contain spaces or line breaks.
*******Reward points,if found useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.