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
Post a Comment