Skip to content

Commit

Permalink
Remove namespace from map entry serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Oct 12, 2023
1 parent a8b9f4c commit ebe5856
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,10 @@ private class XmlMapSerializer(
checkNotNull(mapTrait.entry)
}

val entryNamespace = descriptor.findTrait<XmlNamespace>()
val keyNamespace = descriptor.findTrait<XmlMapKeyNamespace>()
val valueNamespace = descriptor.findTrait<XmlCollectionValueNamespace>()

xmlWriter.writeTag(tagName, entryNamespace) {
xmlWriter.writeTag(tagName) {
writeTag(mapTrait.key, keyNamespace) { text(key) }
writeTag(mapTrait.value, valueNamespace) { valueFn() }
}
Expand Down

0 comments on commit ebe5856

Please sign in to comment.