| Author | 
		  Message
		 | 
		
		  | hellobond070 | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:37 am    Post subject: XML element with hypen..BAR file not getting created | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:47 am    Post subject: Re: XML element with hypen..BAR file not getting created | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hellobond070 | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:48 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:51 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hellobond070 | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 11:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				| What does the "InfoCenter" say you should use? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hellobond070 | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 1:10 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 18 Nov 2009 Posts: 118
  
  | 
		  
		    
			  
				| I did search infocenter before posting. Has anyone encountered anything like this before | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 2:21 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Mon Sep 13, 2010 7:10 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |