highsource / jsonix

Powerful XML<->JSON JavaScript mapping library.
BSD 2-Clause "Simplified" License
361 stars 79 forks source link

JAXB_ENCODING and JAXB_FORMATTED_OUTPUT #164

Open TheSneak opened 7 years ago

TheSneak commented 7 years ago

Question:

In Java I would set these properties on the marshaller like this:

        Marshaller marshaller = context.createMarshaller();
        marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
        marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
        marshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, "http://www.sample.net/SAMPLE http://www.sample.net/v1.2/SAMPLE2v1_2.xsd");

How would I set these properties or get this behavior with jsonix?

Thank you

highsource commented 7 years ago

Not possible at the moment.