File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ Mixed. Mixed is a special type that allows for mixing of text and element conten
124
124
- Otherwise it will be written as a tag
125
125
126
126
### Tag/attribute name
127
+ The way the name is determined is configured/implemented through the configured policy. The documentation below
128
+ is for the default policy. This is designed to allow customization by users.
129
+
127
130
Based upon the storage type, the effective name for an attribute is determined as follows:
128
131
- ` @XmlSerialName ` at property declaration site
129
132
- ` @XmlSerialName ` at type declaration site
@@ -144,6 +147,13 @@ The effective name for a polymorphic child is determined as follows:
144
147
the serial name of the type (shortened to share the package name with the container). The value will use the default
145
148
name ` value ` .
146
149
150
+ The implementation if serialization in the Kotlin compiler does not allow distinguishing between the automatic name and
151
+ a ` @SerialName ` annotation. The default implementation supposes that if there is a '` . ` ' character in the name, this is
152
+ a java type name and it strips the package out. (This also when it could be an attribute).
153
+
154
+ If you need to support names with dots in your format, either use the ` @XmlSerialName ` annotation, or use a
155
+ different policy.
156
+
147
157
## Annotations
148
158
149
159
| Annotation | property | description |
You can’t perform that action at this time.
0 commit comments