How to generate JAXB classes from just XML

前端 未结 3 1259
执笔经年
执笔经年 2020-11-30 21:20

I need to generate classes from xml that doesn\'t provide a schema. I understand this is near useless, but the fact is we have xml, it\'s structured, and we should be able t

3条回答
  •  孤独总比滥情好
    2020-11-30 21:43

    If the XML was created by JAXB, it can easily be converted back into objects. There's a tutorial over at oracle which illustrates one way to do this. Spring framework offers similiar features using JAXB which are very conveniant.

提交回复
热议问题