ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML encoding

Post new topic  Reply to topic
 XML encoding « View previous topic :: View next topic » 
Author Message
kirank
PostPosted: Thu Apr 27, 2006 4:30 pm    Post subject: XML encoding Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 136
Location: California

Hi,

I am using a stylesheet to transform message from one XML format to other using XML transformation node. I have a requirement where output side does not want encoding in the XML declaration beacuse all data has CDATA section. So they want <?xml version="1.0" ?> instead of <?xml version="1.0" encoding "UTF-8"?> . The XSLT processor defaults the encoding to UTF-8. Is there any way we can suppress encoding using Stylesheet?

Thanks

Kiran
Back to top
View user's profile Send private message
JT
PostPosted: Fri Apr 28, 2006 7:20 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

I don't know whether or not you can suppress encoding using the Stylesheet, but you can do it in a Compute node with this ESQL statement:

Code:
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = NULL;
Back to top
View user's profile Send private message
kirank
PostPosted: Fri Apr 28, 2006 7:42 am    Post subject: Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 136
Location: California

Yes I may be able to do that with compute node but I can't use compute node here. The messages can be more than 5Mb in size and we have seen compute node does not efficiently handle XML's greater than 4Mb. So is there any way to do that using stylesheet and XML transformation node.

Thanks

Kiran
Back to top
View user's profile Send private message
kirank
PostPosted: Fri Apr 28, 2006 10:01 am    Post subject: Convert XML encoding to UTF-16 using XML transformation node Reply with quote

Centurion

Joined: 10 Oct 2002
Posts: 136
Location: California

I just had a change in requirment. Now we need to send UTF-16 as the encoding on output side. When I try to do that using XML transformation node, I am getting error. The trace on XML transformation node shows sun.io.MalformedInputException: Missing byte-order mark error. I am not sure how broker is internally using Java for XMl transformation node. I am at level WBIMB 5.0 CSD 3. Does it support UTF-16 encoding for XML transformation node?

Thanks

Kiran
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML encoding
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.