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

Issue 7777047: code review 7777047: encoding/xml: predefine xml name space prefix (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rsc
Modified:
11 years, 1 month ago
Reviewers:
CC:
golang-dev, r, bradfitz
Visibility:
Public.

Description

encoding/xml: predefine xml name space prefix Also change prefix generation to use more human-friendly prefixes. Fixes issue 5040.

Patch Set 1 #

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

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -21 lines) Patch
M src/pkg/encoding/xml/marshal.go View 1 2 3 2 chunks +68 lines, -10 lines 0 comments Download
M src/pkg/encoding/xml/read_test.go View 1 2 3 5 chunks +25 lines, -11 lines 0 comments Download
M src/pkg/encoding/xml/xml.go View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 1 month ago (2013-03-13 18:18:39 UTC) #1
r
LGTM https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go File src/pkg/encoding/xml/marshal.go (right): https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go#newcode144 src/pkg/encoding/xml/marshal.go:144: if url == "http://www.w3.org/XML/1998/namespace" { should this and ...
11 years, 1 month ago (2013-03-13 18:22:52 UTC) #2
bradfitz
https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go File src/pkg/encoding/xml/marshal.go (right): https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go#newcode163 src/pkg/encoding/xml/marshal.go:163: if p.attrNS[prefix] != "" { || prefix == "xml" ...
11 years, 1 month ago (2013-03-13 18:25:44 UTC) #3
rsc
https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go File src/pkg/encoding/xml/marshal.go (right): https://codereview.appspot.com/7777047/diff/2001/src/pkg/encoding/xml/marshal.go#newcode144 src/pkg/encoding/xml/marshal.go:144: if url == "http://www.w3.org/XML/1998/namespace" { On 2013/03/13 18:22:52, r ...
11 years, 1 month ago (2013-03-13 18:34:07 UTC) #4
rsc
11 years, 1 month ago (2013-03-13 18:36:45 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=278c4b3d927c ***

encoding/xml: predefine xml name space prefix

Also change prefix generation to use more human-friendly prefixes.

Fixes issue 5040.

R=golang-dev, r, bradfitz
CC=golang-dev
https://codereview.appspot.com/7777047
Sign in to reply to this message.

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