Re: [jibx-users] Wrapping XML with a different element

2006-09-15 Thread Morgan Rachell



Thanks for your response, but I guess I'm missing 
something. All examples that I've seen have the outermost (top-level) xml 
element map directly to a class. I'm looking for a way to spit out useless 
elements that don't map to any class either directly or 
indirectly.
 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Sent: Friday, September 15, 
2006 4:26 AMTo: JiBX usersCc: Morgan 
RachellSubject: Re: [jibx-users] Wrapping XML with a different 
element
Hi, I am not sure if this answers your question. 
but you can use it this way by inlcuding 
other binding defintions. Here is an 
example.Its quite a lengthy one and my final binding file includes 3-4 of them 
but for brevity i have pasted only two bindings. For clarity i have pasted the output xml that i wish to 
get from this bining so you can see how inclusion actually works. 
Hope this helps. Rgds, Chetan  
          
                      
                
header-binding.xml  
    
       
          
                           
                         
     
          
                       
             
                                 
                 
                                        
                           
                 
                         
                    
    
          
                      
                      
  price-binding.xml  
    
       
          
                                        
           
        
         
          
                      
        CREATE_TRADE BINDING(this inludes the above two 
bindings)  
                                                           
        
             
                      
             
                                 
     
          
                           
                                 
       
                      
   
                    
        
                     
                      
                     
               
                      
                                     
                      
                           
                      
                             
                      
                    
          
                      
                
   
                      
                      
               
                      
                      
 
          
                      
                      
               
                      
                 
                      
                      
        
                      
                                  
                    
             
                      
                                 
                      
         
          
                      
                           
                                  
                                   
                      
                    
 
          
                      
                      
  The output xml file achieved with the above bindings  
         
xmlns:ibml="http://ibml/2005"         
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         
xsi:schemaLocation="http://ibml/2005 ../../xsd/IBML-1-2-2.xsd"         
xsi:type="ibml:CreateTradeRequest"         version="4-2"         
ibmlVersion="1-1">   
                           
                        
    
conversationIdScheme="http://www.jpmorgan.com/coding-scheme/conversationId">Equ

Re: [jibx-users] Wrapping XML with a different element

2006-09-15 Thread chetan . v . minajagi
tp://www.PartyA.com/coding-scheme/tradeId">1234
       
               

       
               
2005-07-13
       
        
       
        
       
               

       
               
        productTypeScheme="http://ibml.jpmorgan.com/coding-scheme/product-type">Equity
       
               

       
               

       
               
1
       
               

       
               
        USD
       
               
        78.20
       
               

       
               
        
               
       
       
               
        
       
               
               
3
       
               
               
D
       
               
               
  Business
       
               
               
NONE
       
               
               

       
               
               
               
EUTA
       
               
               

       
               
               

       
               
        
       
               

       
               
USD
       
               

       
               
        
       
               
               
instrumentIdScheme="http://www.reuters.com/coding-scheme/instrumentid">STM-FP
       
               
        STMicroelectronics
N.V. ordinary shares
       
               
        
       
               
               
exchangeIdScheme="http://www.fpml.org/schemes/4.1/exchangeId">NSE
       
               

       
        
       

       

       

       
        Party A
       

       

       
        Party B
       

       








Morgan Rachell <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]
14/09/2006 23:02



Please respond to
JiBX users 





To
jibx-users@lists.sourceforge.net


cc



Subject
[jibx-users] Wrapping XML with a different
element









Sorry if this got posted twice, the first one bounced back to me.

Anyone know how to do this? I want to wrap the output XML in another element
that doesn't map to any class. My mapping looks like this:
 


   
   ...

 
But I want to do something like
 


   


   
   ...

 
So the output XML goes from this:
 

...

 
to this:
 

   
   ...
   

 
Any thoughts on how I would do this? Thanks!
Morgan
 
-- 
View this message in context: http://www.nabble.com/Wrapping-XML-with-a-different-element-tf2274427.html#a6315703
Sent from the jibx-users forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users





This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


[jibx-users] Wrapping XML with a different element

2006-09-14 Thread Morgan Rachell

Sorry if this got posted twice, the first one bounced back to me.

Anyone know how to do this? I want to wrap the output XML in another element
that doesn't map to any class. My mapping looks like this:
 


   
   ...

 
But I want to do something like
 


   


   
   ...

 
So the output XML goes from this:
 

...

 
to this:
 

   
   ...
   

 
Any thoughts on how I would do this? Thanks!
Morgan
 
-- 
View this message in context: 
http://www.nabble.com/Wrapping-XML-with-a-different-element-tf2274427.html#a6315703
Sent from the jibx-users forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users