| Author | 
		  Message
		 | 
		
		  | vmurdesh | 
		  
		    
			  
				 Posted: Fri May 10, 2002 8:52 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 09 May 2002 Posts: 18
  
  | 
		  
		    
			  
				I am trying to output XML in a COMPUTE node to get 
 
<Billing day="01" month="12">
 
</Billing>
 
 
What is the syntax for this? i tried some combinations from the manual like..
 
SET OutputRoot.XML.Billing.(XML.Element)day =’01 ’;
 
SET OutputRoot.XML.Billing.(XML.Element)month =’12’;
 
 
which does not work | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kirani | 
		  
		    
			  
				 Posted: Fri May 10, 2002 9:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				Try this ..
 
SET OutputRoot.XML.Billing.(XML.Attribute)day ='01'; 
 
SET OutputRoot.XML.Billing.(XML.Attribute)month ='12'; 
 
 
 _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lillo | 
		  
		    
			  
				 Posted: Mon May 13, 2002 2:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 11 Sep 2001 Posts: 224
  
  | 
		  
		    
			  
				If kirani suggestions doesn´t work try with this:
 
 
SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01'; 
 
SET OutputRoot.XML.Billing.(XML.Attribute)month VALUE='12'; 
 
 
Cheers,
 
 
Lillo | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | CHF | 
		  
		    
			  
				 Posted: Fri Jan 05, 2007 12:29 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 16 Dec 2003 Posts: 297
  
  | 
		  
		    
			  
				Any insight when to use
 
 
SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01';
 
 
versus
 
 
SET OutputRoot.XML.Billing.(XML.Attribute)day='01';
 
 
I tried searching in the forum, but couldn't get any information....
 
 
Thanks. _________________ CHF    | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vsr | 
		  
		    
			  
				 Posted: Fri Jan 05, 2007 1:02 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 04 Apr 2006 Posts: 104
  
  | 
		  
		    
			  
				
   
	| Code: | 
   
  
	Any insight when to use 
 
 | 
   
 
 
 
Lillo is right ! we should use SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01';
 
 
Syntax is :
 
 
OutputRoot.XML.Root_Tag.(XML.Attribute)Your_Tag VALUE= 'Tag_Value';
 
 
if we code SET OutputRoot.XML.Billing.(XML.Attribute)day='01'; then (day='01') is considered as whole tag name which is not what you wanted ..
 
 
If we give After (XML.Attribute) | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Fri Jan 05, 2007 2:33 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				If you are using v6 you should be using XMLNSC, not XML. 
 
If on v5, use XMLNS. The XML domain should not be used in new message flows. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Fri Jan 05, 2007 4:51 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |