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 element with hypen..BAR file not getting created

Post new topic  Reply to topic
 XML element with hypen..BAR file not getting created « View previous topic :: View next topic » 
Author Message
hellobond070
PostPosted: Mon Sep 13, 2010 11:37 am    Post subject: XML element with hypen..BAR file not getting created Reply with quote

Centurion

Joined: 18 Nov 2009
Posts: 118

hello,

We have a element named as MST-NUMB coming from the input XML.

I am trying to use a simple esql statement of assginging this to a field.

Say....
Code:
SET Var = InputRoot.XMLNSC.Document.{MST-NUMB};


But the file is not getting created throwing an error :

Quote:
BIP2432E: (PAYMENTS_Compute.Main, 33.122) : The correlation name 'MASTBOL' is not valid.



Can someone tell me how should I read the input XML element with hyphen so that the bar file gets created. Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 13, 2010 11:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Using {} means "use the value that this field holds". It does not mean "protect the name of this field".

To do that you need to use a different "character".
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 13, 2010 11:47 am    Post subject: Re: XML element with hypen..BAR file not getting created Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hellobond070 wrote:
Can someone tell me how should I read the input XML element with hyphen so that the bar file gets created. Thanks.


Correctly?

Why not:
Code:
 SET Var = InputRoot.XMLNSC.Document.MST-NUMB;


Using {} means to use the contents of the field in that location.

I'm also unclear from your post how you have determined this line is the cause of your problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hellobond070
PostPosted: Mon Sep 13, 2010 11:48 am    Post subject: Reply with quote

Centurion

Joined: 18 Nov 2009
Posts: 118

I have tried the below also :

Code:
SET Var = InputRoot.XMLNSC.Document.(MST-NUMB);


IMPORTANT NOTE : I never had problems creating the BAR file. That BAR file is not getting deployed...I am gettting errors while deploying the BAR file
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 13, 2010 11:51 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hellobond070 wrote:
I have tried the below also :

Code:
SET Var = InputRoot.XMLNSC.Document.(MST-NUMB);



Does that even make sense?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 13, 2010 11:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

hellobond070 wrote:
I have tried the below also :


Yes.

() is also the wrong "character" to use.
Back to top
View user's profile Send private message
hellobond070
PostPosted: Mon Sep 13, 2010 11:57 am    Post subject: Reply with quote

Centurion

Joined: 18 Nov 2009
Posts: 118

I am sure that this statement is causing the problem because when I comment it my BAR file is getting deployed. When I include the hyphen XML element MST-NUMB, I am facing issues deploying the BAR file. It says that NUMB is not valid correlation name.


Quote:
Vitor wrote
Correctly?

Why not:
Code:
SET Var = InputRoot.XMLNSC.Document.MST-NUMB;


Using {} means to use the contents of the field in that location.

I'm also unclear from your post how you have determined this line is the cause of your problem.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 13, 2010 11:59 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hellobond070 wrote:
It says that NUMB is not valid correlation name.


Oh - why didn't you say so?

I agree with mqjeff, who (as usual) has grasped the right end of the stick.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 13, 2010 11:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What does the "InfoCenter" say you should use?
Back to top
View user's profile Send private message
hellobond070
PostPosted: Mon Sep 13, 2010 1:10 pm    Post subject: Reply with quote

Centurion

Joined: 18 Nov 2009
Posts: 118

I did search infocenter before posting. Has anyone encountered anything like this before
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 13, 2010 2:21 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
It says that NUMB is not valid correlation name.
That's interesting. I wonder why it said that. I thought your element was called 'MST-NUMB' not 'NUMB'. Any ideas?

You might find this useful: http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac05980_.htm
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 13, 2010 7:10 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

hellobond070 wrote:
I did search infocenter before posting. Has anyone encountered anything like this before


I said absolutely nothing about the infocenter.

I referenced the "InfoCenter".

Why did you fail to think the " were unimportant?
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 element with hypen..BAR file not getting created
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.