Skip to content

OXM Marshal encoding definition [SWS-97] #237

@gregturn

Description

@gregturn

Julien Rault opened SWS-97 and commented

I'am using JibxMarshaller. There is no way to specify the encoding.

Right now, my marshal function return a XML file with no encoding <?xml version="1.0"?>

In JibxMarshaller code, you use:
marshalDocument(graph, null, null, outputStream);
and
marshalDocument(graph, null, null, writer);

but the interface is:
marshalDocument(Object root, String enc, Boolean alone, OutputStream outs)
marshalDocument(Object root, String enc, Boolean alone, Writer outw)

Can you add a property in the bean definition like:
<property name="encoding" value="UTF-8"/>

So we can specified the encoding.

Thanks


Affects: 1.0 M3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions