JAXB namespace problem = Urgent
I am trying to marshal java object into XML using JAXB.
The EXPECTED result is
<?xml version="1.0" encoding="UTF-8"?>
but the ACTUAL result I am getting is as follows
?xml version="1.0" encoding="UTF-8"?>
That is, it does not pick up the correct NAMESPACE names such as namespace1 and namespace2, instead it gives its own namespaces names such as ns1, ns2 and so on.
Please help me to solve this problem.