Transform From one JAXB object to another using XSLT template

前端 未结 2 1028
旧时难觅i
旧时难觅i 2021-01-23 03:56

Is there a way to transform a JAXB generated object to another JAXB object using an XSLT template file. The two objects are generated by two different JAXB bindings.

I

2条回答
  •  长发绾君心
    2021-01-23 04:46

    No, it is not possible. JAXB converts Java to XML or XML to Java. If you have XML, then use XSLT to transform the document. If you have a Java object, then use Java to transform an object. There is no intermediary format.

提交回复
热议问题