Announcement Announcement Module
Collapse
No announcement yet.
Unable to validate xml with Jaxb2Marshaller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to validate xml with Jaxb2Marshaller

    In a previous post, I reported a "bug" in jaxb unmarshaller.
    Poutsma corrected the problem by introducing two new class Jaxb1Marshaller and Jaxb2Marshaller.

    After Poutsma made available the nightly source code I came up with the following problem:

    I want to unmarshall an xml that depends to an xml schema that in turn includes other xml schemas, using Jaxb2Marshaller

    Since the method setSchema(Resource) of Jaxb2Marshaller takes only one argument (the resource to the xml schema), I am not able to validate the XML. (Outside spring-oxm I can do it like this).

    I would like to propose the addition of an overloaded setSchema method that accepts either a list (or array) of Resources, or a Schema object.

  • #2
    Ok, I will fix this, probably this weekend.

    Could you file a JIRA issue for it here?

    Thanks,

    Comment


    • #3
      Originally posted by poutsma
      Could you file a JIRA issue for it here?
      I 've created SWS-23

      Comment


      • #4
        Originally posted by routis
        I 've created SWS-23
        It's fixed: I've added a schemas property to the Jaxb2Marshaller. You can download a new snapshot here.

        Comment


        • #5
          Originally posted by poutsma
          It's fixed: I've added a schemas property to the Jaxb2Marshaller. You can download a new snapshot here.
          Thanks for the fix. Propably, I 'll check it on Monday.

          Keep up the good work.

          By the way, are there any news about moving to SVN and/or Maven? The situation with SF is not acceptable.

          Comment


          • #6
            I would like to report that the fix works just fine.

            Comment


            • #7
              Originally posted by routis
              I would like to report that the fix works just fine.
              Great.

              Since SourceForge CVS is down again, I could do very little to fix it at this time.

              Comment

              Working...
              X