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

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -