IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
4 Posts

Pinned topic Searching Code Example of Converting Java Beans to XML Files Using XSLT

‏2011-06-08T18:41:05Z |
By now, forum members probably know that I am trying to convert Java beans to XML file. I have spent some time to read about basics.

Please correct me if I am wrong - JAXB “forces” the Java class to use the exact element names defined in the target XML file. However, the element names in target XML file may not be exactly the same as those defined in the data model. XSLT can do element to element mapping. Therefore, I would like to explore a little more about XSLT.

I have surfed on the internet. I have difficult time find code examples of converting Java Beans to XML files using the XSLT processor. Do anybody know any code examples?

Thank you.