Controlling namespace prefixes in JAXB

前端 未结 5 785
无人及你
无人及你 2020-12-03 12:05

How does jaxb determine the list of namespace prefix declarations whem marshalling an object? I used xjc to compile java classes for ebics (ebics schema). When I create an i

5条回答
  •  甜味超标
    2020-12-03 12:44

    The way I've found to get JAXB to remove the ns2 prefix is to include the following attribute in the xs:schema element: elementFormDefault="qualified". So it would look something like this:

    
    

提交回复
热议问题