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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -