M
Marco Montel
I have two applications that should comunicate through an xml file. This
xml will contain a CDATA section with a digital signature.
The problem is that the digital signature is composed of special
character that are nor correctly recognized by the xml parser.
When you try to open the follow file with an xml editor, like jedit, you
will see that the CDATA block is marked with follow error:
"An invalid XML character (Unicode: 0x6) was found in the CDATA section."
This is the xml file:
<?xml version="1.0" encoding="utf-8"?>
<Document>
<DataBlock>
<![CDATA[0‚V_ *†H†÷
‚VP0‚VL1 0+0‚FO *†H†÷
‚F@‚F<Content-Type: multipart/mixed;
boundary="----=_NextPart_717_3066_3832508151693287"
MIME-Version: 1.0
X-Mailer: EldoS MIMEBlackbox Library, version: 2004.04.16
Date: Sat, 4 Dec 2004 19:33:50 +0100
Message-ID: <200412041933500630@69768441>
This is a multi-part message in MIME format.
------=_NextPart_717_3066_3832508151693287
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: base64
]]>
</DataBlock>
</Document>
How can I handle this special content in an xml file ? Should I use an
other encoding ?
bye marco
xml will contain a CDATA section with a digital signature.
The problem is that the digital signature is composed of special
character that are nor correctly recognized by the xml parser.
When you try to open the follow file with an xml editor, like jedit, you
will see that the CDATA block is marked with follow error:
"An invalid XML character (Unicode: 0x6) was found in the CDATA section."
This is the xml file:
<?xml version="1.0" encoding="utf-8"?>
<Document>
<DataBlock>
<![CDATA[0‚V_ *†H†÷
‚VP0‚VL1 0+0‚FO *†H†÷
‚F@‚F<Content-Type: multipart/mixed;
boundary="----=_NextPart_717_3066_3832508151693287"
MIME-Version: 1.0
X-Mailer: EldoS MIMEBlackbox Library, version: 2004.04.16
Date: Sat, 4 Dec 2004 19:33:50 +0100
Message-ID: <200412041933500630@69768441>
This is a multi-part message in MIME format.
------=_NextPart_717_3066_3832508151693287
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: base64
]]>
</DataBlock>
</Document>
How can I handle this special content in an xml file ? Should I use an
other encoding ?
bye marco