Mary, Did you have a chance to test the code? I would like to hear if it worked or not.
Andreas On Wed, Jul 22, 2009 at 19:55, Andreas Veithen<andreas.veit...@gmail.com> wrote: > Mary, > > You can try something like this: > > MyBean bean = ... > Transformer transformer = TransformerFactory.newInstance().newTransformer(); > OMFactory factory = OMAbstractFactory.getOMFactory(); > OMSource in = new OMSource(bean.getOMElement(MyBean.MY_QNAME, factory)); > JDOMResult out = new JDOMResult(); > transformer.transform(in, out); > Element element = (Element)out.getResult().get(0); > > Note that this assumes you have Axiom 1.2.8 (which comes with Axis2 > 1.5). Also note that I didn't test the code, so please let us know if > it works. > > Andreas > > > On Wed, Jul 22, 2009 at 19:03, Hu, Mary - ITG<mary...@jpmorgan.com> wrote: >> Hi, >> >> I have ADBBean objected generated in axis2. Now I need convert this >> object into org.jdom.Element object for business processing. Can someone >> tell me how I can do it? >> >> >> Thanks, >> Mary Hu >> >> >> >> >> This email is confidential and subject to important disclaimers and >> conditions including on offers for the purchase or sale of >> securities, accuracy and completeness of information, viruses, >> confidentiality, legal privilege, and legal entity disclaimers, >> available at http://www.jpmorgan.com/pages/disclosures/email. >> >