Connecting Tech Pros Worldwide Help | Site Map

How to include namespaces in the generated xml using JAXB

Newbie
 
Join Date: Aug 2009
Posts: 8
#1: Sep 10 '09
Hi all,
I have using JAXB to generate XML from a XSD file.
So far so good. But i noticed that all the URL's (namespaces in the xsd)
are not present in the generated xml. TO be precise my XSD file contains 4 namespaces ( which includes "http://www.w3.org/2001/XMLSchema" and 3 others), but my generated xml shows only 1 namespace. How do i resolve this issue?.
Any help will be appreciated. Thanks in advance.
Newbie
 
Join Date: Aug 2009
Posts: 8
#2: Sep 11 '09

re: How to include namespaces in the generated xml using JAXB


Hi guys,
I am still facing the same problem...
Can somebody, please please help me....
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#3: Sep 11 '09

re: How to include namespaces in the generated xml using JAXB


Quote:

Originally Posted by javatoil260309 View Post

Hi guys,
I am still facing the same problem...
Can somebody, please please help me....

I'm sorry, I saw your question but don't know the answer; there are only two regular moderators here, r035198x and me; there are no replies yet so I don't think r035198x knows the answer either. I'll ask some other moderators, hang on.

kind regards,

Jos
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#4: Sep 11 '09

re: How to include namespaces in the generated xml using JAXB


what does JAXB say about namespaces (despite the two required ones)?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#5: Sep 11 '09

re: How to include namespaces in the generated xml using JAXB


Quote:

Originally Posted by JosAH View Post

... I don't think r035198x knows the answer either...

Correct .
Reply

Tags
generate., java, jaxb, namespace, xml