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 Declaration in Java compute node

Post new topic  Reply to topic
 XML Declaration in Java compute node « View previous topic :: View next topic » 
Author Message
dilse
PostPosted: Wed Dec 12, 2007 9:51 am    Post subject: XML Declaration in Java compute node Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Hi All,
I may be asking a dumb question but I couldnt find any info on this anywhere(neither in infocenter nor in forum)

How do you do the XML Declaration in JCN that is equivalent to the following ESQL.

Code:
-- Create an XML Declaration
      SET OutputRoot.XML.(XML.XmlDecl) = '';
      -- Set the Version within the XML Declaration
      SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
      -- Set the Encoding within the XML Declaration
      SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';


Any input is appreciated.

TIA.

DilSe..
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Dec 12, 2007 1:40 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

I think a lot of people did this already. Please shed some light on this.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Dec 12, 2007 2:15 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't use XML domain, it's deprecated.

Use XMLNS instead.

The XML Declaration is a "parser specific type".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 12, 2007 2:28 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You will find an example of how to create an XML declaration for XMLNSC here http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ac26040_.htm

There's no example for XMLNS, but I expect you can work out the details once you've seen the XMLNSC example. In fact, there's a typo in the first line
of the example which will help you do that

Don't even think about using the XML domain in a new message flow.
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Dec 12, 2007 3:38 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Thanks for your response. Sorry Guys.. That was a typo to use XML as Parser which I never intended but my question was more around how to do the XML Declaration in Java Compute Node as I did not see any samples around this but I will try Jeff's suggestions to see if it works.

Thanks

DilSe..
Back to top
View user's profile Send private message
kiruthigeshwar
PostPosted: Tue Jan 29, 2013 11:28 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Oct 2012
Posts: 50

dilse wrote:
Thanks for your response. Sorry Guys.. That was a typo to use XML as Parser which I never intended but my question was more around how to do the XML Declaration in Java Compute Node as I did not see any samples around this but I will try Jeff's suggestions to see if it works.

Thanks

DilSe..


Check this page
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67180_.htm
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jan 30, 2013 5:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

kiruthigeshwar wrote:
dilse wrote:
Thanks for your response. Sorry Guys.. That was a typo to use XML as Parser which I never intended but my question was more around how to do the XML Declaration in Java Compute Node as I did not see any samples around this but I will try Jeff's suggestions to see if it works.

Thanks

DilSe..


Check this page
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67180_.htm


This is a really useful post. Do you think dilse found his answer in the last six years?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kiruthigeshwar
PostPosted: Wed Jan 30, 2013 9:32 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Oct 2012
Posts: 50

lancelotlinc wrote:
kiruthigeshwar wrote:
dilse wrote:
Thanks for your response. Sorry Guys.. That was a typo to use XML as Parser which I never intended but my question was more around how to do the XML Declaration in Java Compute Node as I did not see any samples around this but I will try Jeff's suggestions to see if it works.

Thanks

DilSe..


Check this page
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67180_.htm


This is a really useful post. Do you think dilse found his answer in the last six years?


At least this should be helpful for those who search for this topic hereafter.
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 Declaration in Java compute node
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.