update data in java class as per change in attribute in the xml file

后端 未结 2 1730
说谎
说谎 2020-12-21 22:36

I want to add an attribute to the xml defination file

Now i want this change to be reflected in a java class . Can you suggest as to how it can be done . Also i w

2条回答
  •  抹茶落季
    2020-12-21 22:57

    As you already have a schema for your xml files and you want java classes for the data types, consider using JAXB. This xml binding API can autogenerate classes from schemas and it provides convenient methods to marshal and unmarschal XML documents. (IAW: "convert an XML into java instances and vice versa).

提交回复
热议问题