java ee - JAXB update the XML file -


i'm using jaxb generate xml file on server. after first time deployed server. want change tag names of xml file. changed class variables. recompiled java files , redeploy. however, xml not change @ all. need steps update xml file?

by default jaxb (jsr-222) implemntations base xml element names based on public properties (get/set methods) , public fields (instance variables). if fields not public changing there name not impact xml tags.

if want base element names on fields can use @xmlaccessortypr(xmlaccesstype.field) annotation:

also can use @xmlelement on property change name.


Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -