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 » anyone has ever had XML.AsisElementContent working?

Post new topic  Reply to topic
 anyone has ever had XML.AsisElementContent working? « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Wed Sep 17, 2008 1:10 pm    Post subject: anyone has ever had XML.AsisElementContent working? Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

Hi,

I need to prevent reserved XML characters contained in my message from being converted. So following the document I used the XML.AsisElementContent. But it doens't work, creating an output with the content totally cut off, i.e. empty.

I wonder if anyone out there has ever successfully used the feature.

thanks for sharing your knowledge.


Manual:

Set OutputRoot.XML.(XML.Element)Message.(XML.AsisElementContent) = '<rawMarkup>';
generates the following output message:

<Message><rawMarkup></Message>
This shows that the value of an AsisElementContent syntax element is not modified before it is written to the output message.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 17, 2008 1:14 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried CData ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pcelari
PostPosted: Wed Sep 17, 2008 1:22 pm    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

No. do you happen to have an example how to use it. the section in the manual doesn't tell how to use it in a set statement.

XML CDataSection
CData sections in the XML message are represented by the CDataSection value element. The content of the CDataSection element is the value of the CDataSection element without the <![CDATA[ that marks its beginning and the ]]> that marks its end.

For example, the following Cdata section:

<![CDATA[<greeting>Hello, world!</greeting>]]>
is represented by a CDataSection element with a string value of:

"<greeting>Hello, world!</greeting>"
Unlike Content, occurrences of <,>, &, ", and ' are not translated to their escape sequences when the CDataSection is written out to a serialized message (bit stream).
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 1:29 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Have you tried using a supported XML domain instead of the deprected OutputRoot.XML domain?

Back to top
View user's profile Send private message
pcelari
PostPosted: Wed Sep 17, 2008 1:55 pm    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

You meant XMLNSC? No, I'll do that in the future. at present level, we only use XML

Will it be easier to do what I need in XMLNSC?
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 2:01 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You shouldn't be using XML domain unless you are MQSI 2.1.

You should, at a *minimum* be using XMLNS.

If you are on WMB 6 or 6.1 you should be using XMLNSC for everything, regardless of whether you have namespaces or not.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 17, 2008 2:57 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

mqjeff is correct. The XML domain is deprecated, and you should not be using it in new message flows. XMLNS is identical if you are not using namespaces. XMLNSC is the strategic choice ( and it supports XMLNSC.AsisElementContent ).
Back to top
View user's profile Send private message
pcelari
PostPosted: Thu Sep 18, 2008 3:56 am    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

thanks for the insight.

But a search in the infoCenter for XMLNSC.AsisElementContent yields nothing.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
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 » anyone has ever had XML.AsisElementContent working?
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.