|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XMLNS.Attribute for Static Text |
« View previous topic :: View next topic » |
Author |
Message
|
percykh |
Posted: Fri Nov 02, 2012 3:44 am Post subject: XMLNS.Attribute for Static Text |
|
|
Newbie
Joined: 02 Nov 2012 Posts: 1
|
Hello, I need to create a static line of text at the start of each message. For eg. <this is a static line>, beyond which the message would follow.
To achieve this I am trying :
Code: |
SET OutputRoot.(XMLNSC.Attribute) header= '<Static Text>'; |
With this I get an error as : (BMIAA0H.JED_GBL)[2134]BIP2291E: No constant for parser class name for root element name 'header'.
I have tried without including the Attribute name 'header'. However it gives me an error : Path element must have name, since it identifies a parser
I'm a total newbie to MB. Any help is appreciated.
Regards,
Prasad |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 02, 2012 4:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You have a number of potential problems going on here. Firstly,
Quote: |
<this is static text> |
is not well formed XML so will fail to serialize.
The construction
Code: |
.(XMLNSC.Attribute) header= '<Static Text> |
likewise doesn't give you what you're looking for; you'd get
Code: |
<SomeTagYouNeedToHave header='<Static Text>'>etc |
The actual error you're getting is because you've not specified a parser; the construction you're looking for is
Code: |
SET OutputRoot.XMLNSC.rest of your statement |
But as I said, what you're trying either won't work or won't give you what you're looking for.
percykh wrote: |
I'm a total newbie to MB |
It shows. Get some training and/or spend a lot more time with the documentation and the sample. This is a basic, basic problem and it gets harder after this.
You might want to spend a little time with an XML primer as well. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 02, 2012 5:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
A really really really good resource for self-learning is the Samples that are Included with the product.
Import a bunch of them, play with them, look through them, and see if you can change them or at least break them (and then hopefully fix them...). |
|
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
|
|
|
|