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 issue 2899.
*** Submitted as http://code.google.com/p/go/source/detail?r=108147cd1f5b *** encoding/xml: add support for the omitempty flag This also changes ...
13 years, 3 months ago
(2012-02-08 03:57:51 UTC)
#4
*** Submitted as http://code.google.com/p/go/source/detail?r=108147cd1f5b ***
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 issue 2899.
R=rsc
CC=golang-dev
http://codereview.appspot.com/5645050
Issue 5645050: code review 5645050: encoding/xml: add support for the omitempty flag
(Closed)
Created 13 years, 3 months ago by niemeyer
Modified 13 years, 3 months ago
Reviewers:
Base URL:
Comments: 0