Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(285)

Issue 4941042: xml: Marshal "parent>child" tags correctly (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by Ross Light
Modified:
12 years, 7 months ago
Reviewers:
CC:
m.n.summerfield, adg, kevlar, rsc, gustavo_niemeyer.net, niemeyer, golang-dev
Visibility:
Public.

Description

xml: Marshal "parent>child" tags correctly Fixes issue 2119

Patch Set 1 #

Patch Set 2 : diff -r 443be59de1ba https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 443be59de1ba https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 4 : diff -r 443be59de1ba8e30507b567e9f74a37e815c2e8c https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 443be59de1ba8e30507b567e9f74a37e815c2e8c https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 6 : diff -r 0d64f70fe250cb1158633fae8fb7e2cd351adaba https://go.googlecode.com/hg/ #

Total comments: 11

Patch Set 7 : diff -r 0d64f70fe250cb1158633fae8fb7e2cd351adaba https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 8 : diff -r 0d64f70fe250cb1158633fae8fb7e2cd351adaba https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 9 : diff -r 0d64f70fe250cb1158633fae8fb7e2cd351adaba https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -8 lines) Patch
M src/pkg/xml/marshal.go View 1 2 3 4 5 6 7 8 5 chunks +85 lines, -8 lines 0 comments Download
M src/pkg/xml/marshal_test.go View 1 2 3 4 5 6 7 2 chunks +123 lines, -0 lines 0 comments Download

Messages

Total messages: 31
Ross Light
12 years, 8 months ago (2011-08-21 01:06:45 UTC) #1
kevlar
I'm not convinced that this change is worthwhile; I haven't tried it, but it seems ...
12 years, 8 months ago (2011-08-22 16:19:37 UTC) #2
adg
On 23 August 2011 02:19, <kevlar@google.com> wrote: > I'm not convinced that this change is ...
12 years, 8 months ago (2011-08-22 23:38:44 UTC) #3
adg
On 23 August 2011 09:38, Andrew Gerrand <adg@golang.org> wrote: >> <Group> >> <values> >> <value>foo</value> ...
12 years, 8 months ago (2011-08-22 23:39:27 UTC) #4
kevlar
> > Or is the former the "sane" default? Should we add syntax specify which? ...
12 years, 8 months ago (2011-08-22 23:49:38 UTC) #5
rsc
Throwing away the Unmarshal support is silly. This ambiguity only comes up when the annotation ...
12 years, 8 months ago (2011-08-23 00:07:45 UTC) #6
Ross Light
On 2011/08/23 00:07:45, rsc wrote: > Throwing away the Unmarshal support is silly. > This ...
12 years, 8 months ago (2011-08-23 03:46:19 UTC) #7
Ross Light
http://codereview.appspot.com/4941042/diff/6001/src/pkg/xml/marshal.go File src/pkg/xml/marshal.go (right): http://codereview.appspot.com/4941042/diff/6001/src/pkg/xml/marshal.go#newcode69 src/pkg/xml/marshal.go:69: type mgroup struct { On 2011/08/22 16:19:37, kevlar wrote: ...
12 years, 8 months ago (2011-08-23 03:49:59 UTC) #8
kevlar
ftr, the first case can much more easily be represented simply in a Go data ...
12 years, 8 months ago (2011-08-23 16:36:07 UTC) #9
gustavo_niemeyer.net
> ftr, the first case can much more easily be represented simply in a Go ...
12 years, 8 months ago (2011-08-23 17:16:25 UTC) #10
gustavo_niemeyer.net
> IMO it's not just about simplicity, but about expected behavior. I > actually vote ...
12 years, 8 months ago (2011-08-23 17:28:30 UTC) #11
kevlar
On Tue, Aug 23, 2011 at 10:28 AM, Gustavo Niemeyer <gustavo@niemeyer.net>wrote: > > IMO it's ...
12 years, 8 months ago (2011-08-23 17:58:56 UTC) #12
gustavo_niemeyer.net
> To reuse one of your examples, if you're using the playlist format and only ...
12 years, 8 months ago (2011-08-23 18:44:20 UTC) #13
Ross Light
Hello again, I realized there is a simpler stack-based approach to this problem that respects ...
12 years, 8 months ago (2011-08-24 05:03:25 UTC) #14
kevlar
I'm happy with this code, it just needs a bit more documentation for users and ...
12 years, 8 months ago (2011-08-24 17:26:09 UTC) #15
Ross Light
http://codereview.appspot.com/4941042/diff/13002/src/pkg/xml/marshal.go File src/pkg/xml/marshal.go (right): http://codereview.appspot.com/4941042/diff/13002/src/pkg/xml/marshal.go#newcode50 src/pkg/xml/marshal.go:50: // - the name '???'. On 2011/08/24 17:26:09, kevlar ...
12 years, 8 months ago (2011-08-25 03:59:30 UTC) #16
Ross Light
I realized this didn't handle nils as well as I liked, so here's a new ...
12 years, 8 months ago (2011-08-25 16:56:51 UTC) #17
niemeyer
Some initial comments re. docs: http://codereview.appspot.com/4941042/diff/22001/src/pkg/xml/marshal.go File src/pkg/xml/marshal.go (right): http://codereview.appspot.com/4941042/diff/22001/src/pkg/xml/marshal.go#newcode43 src/pkg/xml/marshal.go:43: // element containing the ...
12 years, 8 months ago (2011-08-25 20:38:58 UTC) #18
rsc
looks good so far
12 years, 8 months ago (2011-08-25 20:47:05 UTC) #19
niemeyer
Nice, thanks for working on this Ross. I've only got a minor suggestion. LGTM either ...
12 years, 8 months ago (2011-08-25 21:46:58 UTC) #20
gustavo_niemeyer.net
> I've only got a minor suggestion. LGTM either way. Plus the doc suggestions, that ...
12 years, 8 months ago (2011-08-25 21:50:50 UTC) #21
Ross Light
I realized there was another edge case with nils that wasn't being handled correctly. See ...
12 years, 8 months ago (2011-08-26 04:27:00 UTC) #22
niemeyer
Thanks, LGTM. Just a minor suggestion: http://codereview.appspot.com/4941042/diff/32001/src/pkg/xml/marshal.go File src/pkg/xml/marshal.go (right): http://codereview.appspot.com/4941042/diff/32001/src/pkg/xml/marshal.go#newcode238 src/pkg/xml/marshal.go:238: s.pop(parents) Can we ...
12 years, 8 months ago (2011-08-26 13:52:12 UTC) #23
Ross Light
http://codereview.appspot.com/4941042/diff/32001/src/pkg/xml/marshal.go File src/pkg/xml/marshal.go (right): http://codereview.appspot.com/4941042/diff/32001/src/pkg/xml/marshal.go#newcode238 src/pkg/xml/marshal.go:238: s.pop(parents) On 2011/08/26 13:52:12, niemeyer wrote: > Can we ...
12 years, 8 months ago (2011-08-26 14:40:41 UTC) #24
niemeyer
Thanks Ross. I'm happy with it. Russ?
12 years, 8 months ago (2011-08-26 14:56:02 UTC) #25
rsc
LGTM Very nice.
12 years, 8 months ago (2011-08-26 15:09:16 UTC) #26
niemeyer
Ross, can you please s/Marshal/marshal/ the description?
12 years, 8 months ago (2011-08-26 15:20:07 UTC) #27
rsc
On Fri, Aug 26, 2011 at 11:20, <n13m3y3r@gmail.com> wrote: > Ross, can you please s/Marshal/marshal/ ...
12 years, 8 months ago (2011-08-26 15:24:27 UTC) #28
gustavo_niemeyer.net
> gustavo: feel free to do that during submit. > > hg clpatch 123 > ...
12 years, 8 months ago (2011-08-26 15:26:31 UTC) #29
rsc
On Fri, Aug 26, 2011 at 11:26, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: >> gustavo: feel free ...
12 years, 8 months ago (2011-08-26 15:28:11 UTC) #30
niemeyer
12 years, 8 months ago (2011-08-26 15:30:02 UTC) #31
*** Submitted as http://code.google.com/p/go/source/detail?r=7697a84ee19f ***

xml: marshal "parent>child" tags correctly

Fixes issue 2119

R=m.n.summerfield, adg, kevlar, rsc, gustavo, n13m3y3r
CC=golang-dev
http://codereview.appspot.com/4941042

Committer: Gustavo Niemeyer <gustavo@niemeyer.net>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b