Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: OXM
    • Labels:
      None

      Description

      The features of marshallers should be made accessible.

      For instance, there should be a way to set properties on the JaxbMarshaller, and to configure an XMLBeans XmlOptions in a Spring context, which can then be specified to the XmlBeansMarshaller. Since XmlOptions does not follow the JavaBeans contract, we will probably have to create some sort of XmlOptionsFactoryBean.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Added in CVS.

        JaxbMarshaller now has a marshallerProperties and a unmarshallerProperties. These can be used to set JAXB properties on the underlying marshaller and unmarshaller respectively. For instance, to pretty print the output XML, use "jaxb.formatted.output" as a key, and true as a value. Additionally, a validating property was added to the JaxMarshaller, to validate incoming XML.

        I also created an XmlOptionsFactoryBean. It has an options property, which can be used to specific XMLBeans options. For instance, to pretty print the output XML, use "SAVE_PRETTY_PRINT" as a key, and true as a value. The possible options can be found here: http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlOptions.html.

        Show
        arjen.poutsma Arjen Poutsma added a comment - Added in CVS. JaxbMarshaller now has a marshallerProperties and a unmarshallerProperties. These can be used to set JAXB properties on the underlying marshaller and unmarshaller respectively. For instance, to pretty print the output XML, use "jaxb.formatted.output" as a key, and true as a value. Additionally, a validating property was added to the JaxMarshaller, to validate incoming XML. I also created an XmlOptionsFactoryBean. It has an options property, which can be used to specific XMLBeans options. For instance, to pretty print the output XML, use "SAVE_PRETTY_PRINT" as a key, and true as a value. The possible options can be found here: http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlOptions.html .

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            arjen.poutsma Arjen Poutsma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: