hi all,
i have to transport rfc822 conform emails with xml, so i want to embed it
into a CDATA section. However mail headers do have greater than and less
than characters and possibly contain the delimiter for the CDATA section ]]>
!? How can i embed a mail without base64 encoding it. Because mails usually
contain attachments that are already base64 encoded, i do not want to encode
the mail again. Is there any tool/function within xerces that lets me check
if some piece of data can be embedded into a CDATA section? Is there a
function that converts < and > to < and > ?
I use the following code but no escaping occurs:
Node cdata = document.createCDATASection("");
cdata.setNodeValue(the_mail);
parent.appendChild(cdata);
Any help and/or hints and/or links are highly appreciated. Thank you.
Mit freundlichen Gr��en
kind regards
Peter Hellmann
Siemens Aktiengesellschaft
Information and Communication Networks
Voice & Data Recording
ICN WN CS VDR RD
Hofmannstra�e 51 +49 89 722 49347
office 1746.441 +49 89 722 22985
D-81379 M�nchen [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
GERMANY
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]