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

Issue 179540043: code review 179540043: encoding/xml: respect name spaces when encoding

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 4 months ago by roger.peppe1
Modified:
9 years, 4 months ago
CC:
rog, martin.hilton, matthew.scott, golang-codereviews
Visibility:
Public.

Description

encoding/xml: respect name spaces when encoding We base the prefixes on xmlns-specified attributes where reasonable. Fixes issue 7535.

Patch Set 1 #

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

Total comments: 3

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

Total comments: 8

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -81 lines) Patch
M src/encoding/xml/marshal.go View 1 2 3 12 chunks +237 lines, -53 lines 0 comments Download
M src/encoding/xml/marshal_test.go View 1 2 1 chunk +336 lines, -26 lines 0 comments Download
M src/encoding/xml/read_test.go View 1 3 chunks +31 lines, -1 line 0 comments Download
M src/encoding/xml/xml.go View 1 2 3 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 7
rog
https://codereview.appspot.com/179540043/diff/20001/src/encoding/xml/marshal.go File src/encoding/xml/marshal.go (right): https://codereview.appspot.com/179540043/diff/20001/src/encoding/xml/marshal.go#newcode265 src/encoding/xml/marshal.go:265: // printerPrefix holds a namespace undo record. This is ...
9 years, 4 months ago (2014-11-28 11:48:59 UTC) #1
martin.hilton
LGTM, with some small changes https://codereview.appspot.com/179540043/diff/20001/src/encoding/xml/marshal.go File src/encoding/xml/marshal.go (right): https://codereview.appspot.com/179540043/diff/20001/src/encoding/xml/marshal.go#newcode265 src/encoding/xml/marshal.go:265: // printerPrefix holds a ...
9 years, 4 months ago (2014-12-01 16:50:09 UTC) #2
matthew.scott
LGTM with Martin's test change. Thanks for this.
9 years, 4 months ago (2014-12-01 19:05:35 UTC) #3
martin.hilton
Updates LGTM. I have some really unlikely nitpicks. https://codereview.appspot.com/179540043/diff/40001/src/encoding/xml/marshal.go File src/encoding/xml/marshal.go (right): https://codereview.appspot.com/179540043/diff/40001/src/encoding/xml/marshal.go#newcode303 src/encoding/xml/marshal.go:303: } ...
9 years, 4 months ago (2014-12-02 10:30:50 UTC) #4
roger.peppe1
Hello rogpeppe@gmail.com, martin.hilton@canonical.com, matthew.scott@canonical.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
9 years, 4 months ago (2014-12-02 12:13:52 UTC) #5
rog
https://codereview.appspot.com/179540043/diff/40001/src/encoding/xml/marshal.go File src/encoding/xml/marshal.go (right): https://codereview.appspot.com/179540043/diff/40001/src/encoding/xml/marshal.go#newcode303 src/encoding/xml/marshal.go:303: } else if attr.Name.Space == "xmlns" && attr.Name.Local != ...
9 years, 4 months ago (2014-12-02 12:14:14 UTC) #6
gobot
9 years, 4 months ago (2014-12-19 05:16:48 UTC) #7
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/179540043 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

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