public interface XmlSerializer extends Serializer
Notes on handling of null
values:
1. A field mapped to an attribute, a simple type element, complex type element or list type element with no
value (null
) will not be serialized, i. e. no element or attribute will be created for this
field.
2. An object mapped to a complex element with all fields having a null value will be serialized to an empty
element. This includes objects mapped to complex elements with a text content. For those objects the
serialzation result is the same for a null and for an empty text content, but the deserialization will create an
empty String
in both cases.
Serializer
Modifier and Type | Method and Description |
---|---|
XmlLowLevelSerializer |
getLowLevelSerializer()
Returns a low level xml serializer.
|
close, flush, open, write
XmlLowLevelSerializer getLowLevelSerializer()
getLowLevelSerializer
in interface Serializer
Copyright © 2014. All rights reserved.