|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML-Parsing Error |
« View previous topic :: View next topic » |
Author |
Message
|
hopfe_de |
Posted: Thu Jul 24, 2003 3:02 am Post subject: XML-Parsing Error |
|
|
 Acolyte
Joined: 03 Mar 2002 Posts: 58 Location: Frankfurt, Germany
|
I get my Data in Messags with these structure.
Code: |
<Message>
<MailFrom>gast</MailFrom>
<MailTo>hopfe/MailTo>
<MailCC>hopfe</MailCC>
<MailBcc>test</MailBcc>
<MailBody>This is my Mailbody</MailBody>
<MailAttachment>
<AttachmentFilename>test.png</AttachmentFilename>
<AttachmentData>[binarydata]</AttachmentData>
</MailAttachment>
</Message> |
Everytime i try to read a message with a binary Attachment, i get an XML parsing error.
Thx,
Hopfe
The MQInputNode uses XML as Messagedomain. |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Jul 24, 2003 3:24 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Try:
<AttachmentData><![CDATA[binarydata]]></AttachmentData>
Also search for CDATA on this board for more details |
|
Back to top |
|
 |
hopfe_de |
Posted: Thu Jul 24, 2003 4:20 am Post subject: |
|
|
 Acolyte
Joined: 03 Mar 2002 Posts: 58 Location: Frankfurt, Germany
|
Thanx for these Tip, CDATA works fine with HTML and XML Attachments, but i still get an error
Code: |
(Unterminated CDATA Section) or
Invalid character (Unicode: 0x1A)) |
when i try to send a png or jpg-file. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 24, 2003 5:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Even in CDATA, certain characters are not allowed in order for the XML parser to work.
Maybe you should keep your binary paylod encoded as Base64 instead? |
|
Back to top |
|
 |
hopfe_de |
Posted: Wed Jul 30, 2003 2:46 am Post subject: |
|
|
 Acolyte
Joined: 03 Mar 2002 Posts: 58 Location: Frankfurt, Germany
|
After converting the Data to base64 it works without problems.
Thanks. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|