java - Generating class for dynamic XML -
java - Generating class for dynamic XML -
i have xml strucutre below
<projectname> <packagename> <classname> <targetmethodname> <testmethod1> <parameter1>--</parameter1> <parameter2>--</parameter2> </testmethod1> <testmethod2> <parameter1>--</parameter1> <paramater2>--</parameter2> </testmethod2> <testmethodname> -------------- ------------ ---------------- </testmethodname> </targetmethodname> </classname> </packagename> </projectname>
xml construction changes dynamically based on user input. question how can generate using jaxb. class construction xml.
you have write xsd schema corresponding xml structure, , utilize xjc tool generate beans.
you should take on xmlencoder http://docs.oracle.com/javase/7/docs/api/java/beans/xmlencoder.html, maybe help you.
java jaxb
Comments
Post a Comment