How to ignore casing of element names in JaxB

后端 未结 3 1882
庸人自扰
庸人自扰 2021-01-06 07:48

As stated in the title I want to ignore casing of element names in a document.

static class XY433 {
    @XmlAttribute(name = \"C200\")
    String c200;
    @         


        
3条回答
  •  一生所求
    2021-01-06 08:19

    Encounter the similar problem. My solution is to add @XmlAdpater on the model entity, which refers to your own XMLAdapter, this would give a flexible customization on the marshall/unmarshall.

提交回复
热议问题