|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML Declaration Question |
« View previous topic :: View next topic » |
Author |
Message
|
Chuck831 |
Posted: Wed Dec 15, 2004 10:29 am Post subject: XML Declaration Question |
|
|
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 |
|
 |
kirani |
Posted: Wed Dec 15, 2004 10:48 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Dec 15, 2004 11:55 am Post subject: |
|
|
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 |
|
 |
JT |
Posted: Wed Dec 15, 2004 12:23 pm Post subject: |
|
|
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 |
|
 |
Chuck831 |
Posted: Wed Dec 15, 2004 1:14 pm Post subject: |
|
|
Apprentice
Joined: 23 Dec 2002 Posts: 28
|
Everyone, Thank you. When I used the attribute everything worked correctly.
Thanks again |
|
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
|
|
|
|