How to include namespaces in the generated xml using JAXB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • javatoil260309
    New Member
    • Aug 2009
    • 8

    How to include namespaces in the generated xml using JAXB

    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.
  • javatoil260309
    New Member
    • Aug 2009
    • 8

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

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by javatoil260309
      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

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        what does JAXB say about namespaces (despite the two required ones)?

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by JosAH
          ... I don't think r035198x knows the answer either...
          Correct .

          Comment

          Working...