How to ignore casing of element names in JaxB

后端 未结 3 1906
庸人自扰
庸人自扰 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:15

    I am using moxy 2.7.1 version and it is working fine with UnmarshallerProperty as below.

    unmarshaller.setProperty(UnmarshallerProperties.UNMARSHALLING_CASE_INSENSITIVE, true);
    

    eclipselink documentation

提交回复
热议问题