I have a problem with converting xml files to annotated classes that elements are annotated and will render by reflection. Into a legacy system, there is numerous XML files that engine of system load them and after unmarshling them, loaded them into objects. I want to eliminate this XML file from my system and replaced them with OOP methodology (like converting one XML to a annotated Java class that all of it elements and values can develop by annotation). There is an example of my XML file:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="state_xslt.xsl"?>
<sequence-mapping xmlns="http://rada.com/rsgrammar.xsd">
<sequence id="load-current-darams">
<starter>
<extender id="loadCom"/>
</starter>
<lastNode>
<startPage forward="/jsps/current-music-info.jsp">
<outer-to-inner>
<put object="dots" to="dots"/>
<put object="theds" to="theds"/>
</outer-to-inner>
</startPage>
</lastNode>
</sequence>
</sequence-mapping>
Then, I want to write this XML by Java class that represents fields and values. Any help?
Aucun commentaire:
Enregistrer un commentaire