Marco Montel
Usenet Archive
- Joined
- Dec 7, 2004
- Messages
- 2
- Reaction score
- 0
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
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
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
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