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 » XMLNS.Attribute for Static Text

Post new topic  Reply to topic
 XMLNS.Attribute for Static Text « View previous topic :: View next topic » 
Author Message
percykh
PostPosted: Fri Nov 02, 2012 3:44 am    Post subject: XMLNS.Attribute for Static Text Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Nov 02, 2012 4:53 am    Post subject: Reply with quote

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='&ltStatic Text&gt'>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
View user's profile Send private message
mqjeff
PostPosted: Fri Nov 02, 2012 5:37 am    Post subject: Reply with quote

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
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 » XMLNS.Attribute for Static Text
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.