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 Question

Post new topic  Reply to topic
 XML Declaration Question « View previous topic :: View next topic » 
Author Message
Chuck831
PostPosted: Wed Dec 15, 2004 10:29 am    Post subject: XML Declaration Question Reply with quote

Apprentice

Joined: 23 Dec 2002
Posts: 28

Hi,

I'm hoping that someone can point me in the right direction. I need to create the following XML Declaration:

Code:

<CreateJob revision="1.0.0" environment="Test">


I have tried the following code:

Code:

SET OutputRoot.XML.(XML.XmlDecl)='';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version)='1.0';
Set OutputRoot.XML.(XML.XmlDecl."Environment")= 'Test';

             and this

SET OutputRoot.XML.(XML.XmlDecl)='';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version)='1.0';
Set OutputRoot.XML.(XML.XmlDecl).(XML.Environment)= 'Test';


Neither one will work. Is there any to code so that I can get the Environment variable.

Thanks.
Chuck
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Dec 15, 2004 10:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

There is a section in ESQL Reference Manual on XML declaration. Please refer to that section for some sample examples. I am not sure if revision and Environment tags are supported or not.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Dec 15, 2004 11:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I'm confused.

How is it that these are XML Declarations, and not simple XML Attributes?

I didn't think "CreateJob" was an XML Declaration tag...?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Wed Dec 15, 2004 12:23 pm    Post subject: Reply with quote

Padawan

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

So, based on Jeff's observation, the code would be something like:

Code:

SET OutputRoot.XML.CreateJob.(XML.Attribute)revision     =  '1.0.0';
SET OutputRoot.XML.CreateJob.(XML.Attribute)environment  =  'Test';
Back to top
View user's profile Send private message
Chuck831
PostPosted: Wed Dec 15, 2004 1:14 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Dec 2002
Posts: 28

Everyone, Thank you. When I used the attribute everything worked correctly.

Thanks again
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 Question
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.