encoding/xml: add support for the omitempty flag
This also changes the behavior of attribute marshalling so that strings and byte slices are marshalled even if empty. The omitempty flag may be used to obtain the previous behavior. Fixes #2899. R=rsc CC=golang-dev https://golang.org/cl/5645050
Showing
Please register or sign in to comment