| Author | 
		  Message
		 | 
		
		  | nelson | 
		  
		    
			  
				 Posted: Tue Sep 24, 2013 9:01 am    Post subject: Namespace in the XML output message of a Mapping Node | 
				     | 
			   
			 
		   | 
		
		
		    Partisan
 
 Joined: 02 Oct 2012 Posts: 313
  
  | 
		  
		    
			  
				I'm mapping from DFDL to XMLNSC domain. The XML message use a namespace for its tags (it is defined in the XDS). Does the mapping node add the namespace of each tag based on the XSDs? I'm very confused because I have developed another flow and the mapping node adds the namespaces of each tag automatically (more than one namespace). In a new flow, the XML output message contains no namespaces. I'm using the same XSD's.
 
 
I have read in this forum that you must add the namespace through a Compute Node.
 
 
Any advice on this?
 
 
Using WMB 8
 
 
Thanks in advance. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Wed Sep 25, 2013 12:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				The Mapping node should create the output XML with the correct namespaces. However...people often get confused by XML namespaces. Please post the XML that your flow is generating ( please use [c o d e] tags ) and highlight what you think is wrong with it.
 
   
	| Quote: | 
   
  
	| I have read in this forum that you must add the namespace through a Compute Node. | 
   
 
Don't believe everything that you read. There are at least 5 different nodes that can transform a message, and all of them allow you to modify namespaces. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nelson | 
		  
		    
			  
				 Posted: Fri Sep 27, 2013 2:02 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Partisan
 
 Joined: 02 Oct 2012 Posts: 313
  
  | 
		  
		    
			  
				kimbert,
 
 
I have discovered that in fact the mapping node generates the namespaces, but they're not displayed while debugging, in the variables tab (the XMLNSC tree seems to have no namespaces)... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | dogorsy | 
		  
		    
			  
				 Posted: Fri Sep 27, 2013 2:07 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Knight
 
 Joined: 13 Mar 2013 Posts: 553 Location: Home Office 
  | 
		  
		    
			  
				
   
	| nelson wrote: | 
   
  
	kimbert,
 
 
I have discovered that in fact the mapping node generates the namespaces, but they're not displayed while debugging, in the variables tab (the XMLNSC tree seems to have no namespaces)... | 
   
 
 
There are many ways of debugging, so your statement is not completely accurate. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Sat Sep 28, 2013 9:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				That sounds unlikely. If true, it would be a fairly serious defect in the debugger. Can you provide any proof? _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Mon Sep 30, 2013 12:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| the mapping node generates the namespaces, but they're not displayed while debugging | 
   
 
Apparently this is a known issue.
 
You probably know this already, but most experienced message flow developers use the debugger for simple scenarios and user trace + Trace nodes when the debugger cannot give the required info. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |