| Author | 
		  Message
		 | 
		
		  | ccarrillo | 
		  
		    
			  
				 Posted: Thu Oct 11, 2018 1:12 pm    Post subject: How to access to second XMLNSC folder  on ESQL | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 28 Oct 2016 Posts: 9
  
  | 
		  
		    
			  
				I'm trying to acces at the second XMLNSC folder with ESQL language, but is return null.
 
 
   
	| Code: | 
   
  
	Message
 
   XMLNSC
 
         SubFlow1...         
 
   XMLNSC
 
         SubFlow2... | 
   
 
 
 
this is my code:
 
 
   
	| Code: | 
   
  
	BROKER SCHEMA pe.gob.prueba
 
 
DECLARE ns4 NAMESPACE 'http://www.cnxav/SubFlow1.xsd';
 
DECLARE ns NAMESPACE 'http://www.cnxav/SubFlow2.xsd';
 
 
 
CREATE COMPUTE MODULE AfiliacionOnline_Compute5
 
   CREATE FUNCTION Main() RETURNS BOOLEAN
 
   BEGIN
 
 
 
      DECLARE value CHAR ;
 
      
 
 
      SET value = InputRoot.XMLNSC.ns:SubFlow2.txError;
 
 | 
   
 
 
 
 
Please any sugesstion? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Oct 11, 2018 7:49 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Perhaps a complete misunderstanding of what a message should look like?
 
 
I'm thinking
 
 
   
	| Code: | 
   
  
	
 
Message
 
             XMLNSC
 
                    <root_tag>
 
                            <subflow1 tag/>
 
                            <subflow2 tag/>
 
                    </root_tag>
 
 | 
   
 
 
 
Hope it helps :innocent; _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ccarrillo | 
		  
		    
			  
				 Posted: Fri Oct 12, 2018 5:48 am    Post subject: How to access to second XMLNSC folder on ESQL | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 28 Oct 2016 Posts: 9
  
  | 
		  
		    
			  
				Yes, I know that, but my question  is, what happen if , i've two XMLNSC folder, like this:
 
 
   
	| Code: | 
   
  
	WMQI_Message
 
 
   XMLNSC
 
         SubFlow1
 
               txError
 
   XMLNSC
 
         SubFlow2
 
                         txError
 
 | 
   
 
 
 
Can I access at the second? or neccesarily  only one is allowed? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Sat Oct 13, 2018 11:16 am    Post subject: Re: How to access to second XMLNSC folder on ESQL | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| ccarrillo wrote: | 
   
  
	Yes, I know that, but my question  is, what happen if , i've two XMLNSC folder, like this:
 
 
   
	| Code: | 
   
  
	WMQI_Message
 
 
   XMLNSC
 
         SubFlow1
 
               txError
 
   XMLNSC
 
         SubFlow2
 
                         txError
 
 | 
   
 
 
 
Can I access at the second? or neccesarily  only one is allowed? | 
   
 
 
 
Then you have a mess on your hands and not a message...   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | souciance | 
		  
		    
			  
				 Posted: Sun Oct 14, 2018 12:56 am    Post subject: Re: How to access to second XMLNSC folder  on ESQL | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 29 Jun 2010 Posts: 169
  
  | 
		  
		    
			  
				
   
	| ccarrillo wrote: | 
   
  
	I'm trying to acces at the second XMLNSC folder with ESQL language, but is return null.
 
 
   
	| Code: | 
   
  
	Message
 
   XMLNSC
 
         SubFlow1...         
 
   XMLNSC
 
         SubFlow2... | 
   
 
 
 
this is my code:
 
 
   
	| Code: | 
   
  
	BROKER SCHEMA pe.gob.prueba
 
 
DECLARE ns4 NAMESPACE 'http://www.cnxav/SubFlow1.xsd';
 
DECLARE ns NAMESPACE 'http://www.cnxav/SubFlow2.xsd';
 
 
 
CREATE COMPUTE MODULE AfiliacionOnline_Compute5
 
   CREATE FUNCTION Main() RETURNS BOOLEAN
 
   BEGIN
 
 
 
      DECLARE value CHAR ;
 
      
 
 
      SET value = InputRoot.XMLNSC.ns:SubFlow2.txError;
 
 | 
   
 
 
 
 
Please any sugesstion? | 
   
 
 
 
Why don't you store the second XMLNSC folder in the Environment tree and access it from there? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rekarm01 | 
		  
		    
			  
				 Posted: Mon Oct 15, 2018 8:03 am    Post subject: Re: How to access to second XMLNSC folder  on ESQL | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 1415
  
  | 
		  
		    
			  
				Aside from any questionable design issues,
 
 
   
	| ccarrillo wrote: | 
   
  
	| Please any sugesstion? | 
   
 
 
try something like this:
 
 
   
	| Code: | 
   
  
	| SET value = InputRoot.XMLNSC[2].ns:SubFlow2.txError; | 
   
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |