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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -