xml - Add namespace to child element using JAXB -


i want namespace added child element header. using jaxb

<soap:envelop xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:header xmlns:wsa="http://myapp/">   <wsa:action></wsa:action>   <wsa:to></wsa:to> <soap:header> </soap:envelop> 

i tried package-info.java , namespaceprefixmapper both add namespace root element shown below.

<soap:envelop xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://myapp/"> <soap:header>   <wsa:action></wsa:action>   <wsa:to></wsa:to> <soap:header> </soap:header> 

why adding namespace prefix , namespace uri child element complicated in jaxb.

any appreciated.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -