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? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -