| Age | Commit message (Collapse) | Author |
|
««« CL 19300046 / 5ac568b9d67b
encoding/xml: fix doc comment
The tag is ",chardata" not "chardata".
Fixes #6631.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/19300046
»»»
R=golang-dev
CC=golang-dev
https://golang.org/cl/20060045
|
|
Fixes #6556.
R=golang-dev, iant, adg
CC=golang-dev
https://golang.org/cl/14747043
|
|
Avoid future 'declared and not used error'.
See also issue 6414.
R=r
CC=golang-dev
https://golang.org/cl/13242058
|
|
Fixes #5626.
R=golang-dev, dominik.honnef
CC=golang-dev
https://golang.org/cl/13702043
|
|
Fixes #6365.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13627046
|
|
Fixes #6341.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13512048
|
|
Flushing after every token negates the point of buffering. A different approach is required.
««« original CL description
encoding/xml: flush buffer after encoding token
R=rsc, bradfitz, adg
CC=golang-dev
https://golang.org/cl/13004046
»»»
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/13515043
|
|
R=rsc, bradfitz, adg
CC=golang-dev
https://golang.org/cl/13004046
|
|
Remove custom support for time.Time.
No new tests: the tests for the time.Time special case
now test the general case.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12751045
|
|
See golang.org/s/go12xml for design.
Repeat of CL 12603044, which was submitted accidentally
and then rolled back.
Fixes #2771.
Fixes #4169.
Fixes #5975.
Fixes #6125.
R=golang-dev
CC=golang-dev
https://golang.org/cl/12919043
|
|
See golang.org/s/go12xml for design.
R=golang-dev, dominik.honnef, dan.kortschak
CC=golang-dev
https://golang.org/cl/12556043
|
|
fat fingers - did not intend to submit.
depends on the Unmarshaler CL anyway.
««« original CL description
encoding/xml: add, support Marshaler interface
See golang.org/s/go12xml for design.
Fixes #2771.
Fixes #4169.
Fixes #5975.
Fixes #6125.
R=golang-dev, iant, dan.kortschak
CC=golang-dev
https://golang.org/cl/12603044
»»»
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/12918043
|
|
See golang.org/s/go12xml for design.
Fixes #2771.
Fixes #4169.
Fixes #5975.
Fixes #6125.
R=golang-dev, iant, dan.kortschak
CC=golang-dev
https://golang.org/cl/12603044
|
|
Fixes #5334.
R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/8653047
|
|
Uglier.
««« original CL description
all: use strings.IndexByte instead of Index where possible
R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/12486043
»»»
R=golang-dev
CC=golang-dev
https://golang.org/cl/12485044
|
|
R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/12486043
|
|
EscapeText now escapes 0xFFFD returned from DecodeRune as 0xFFFD, rather than passing through the original byte.
Fixes #5880.
R=golang-dev, r, bradfitz, adg
CC=golang-dev
https://golang.org/cl/11975043
|
|
Fixes #5843.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11073043
|
|
Fixes #4235.
R=rsc, dave, r, dr.volker.dobler
CC=golang-dev
https://golang.org/cl/7438051
|
|
Also change prefix generation to use more human-friendly prefixes.
Fixes #5040.
R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/7777047
|
|
Fixes #5033.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7764044
|
|
If two fields have the same name but different explicit name spaces,
treat as non-conflicting. This allows parsing common XML formats
that have ns1:tag and ns2:tag in the same XML element.
Fixes #4691.
Allow setting the default name space for unadorned tags, by
writing to Decoder.DefaultSpace. This allows turned the job of
parsing common XML formats that have tag and ns2:tag in the
same XML element into the first case by setting DefaultSpace="ns1".
Fixes #3703.
Use name space attributes when decoding.
Attach name space to attributes when encoding.
Could be done with fewer annotations, but semantically correct as is.
Fixes #3526.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7227056
|
|
Noticed while doing other XML investigations.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7550045
|
|
The old code just assumed that the only thing
you can embed is a struct. Not true.
Fixes #3803.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7743043
|
|
Take advantage of the new terminating statement rule.
R=golang-dev, r, gri
CC=golang-dev
https://golang.org/cl/7712044
|
|
Fixes #4112.
R=remyoudompheng, daniel.morsing, dave, rsc
CC=golang-dev
https://golang.org/cl/7085053
|
|
Thanks Mitică for reporting this.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7308081
|
|
(Still valid XML.)
Fixes #3354.
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/7288047
|
|
Exposing this on the Encoder allows streaming generation of indented XML.
R=golang-dev, rogpeppe
CC=golang-dev
https://golang.org/cl/7221075
|
|
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7235045
|
|
Fixes #4506.
R=rsc, remyoudompheng
CC=golang-dev
https://golang.org/cl/7106045
|
|
Delete various complications left over from an earlier reflect API.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7124063
|
|
Fixes #3719.
R=anacrolix, rsc
CC=golang-dev
https://golang.org/cl/7131052
|
|
Fixes #3559.
This makes Marshal handle fields marked ",any" instead of ignoring
them. That makes Marshal more symmetrical with Unmarshal, which seems
to have been a design goal.
Note some test cases were changed, because this patch changes
marshalling behavior. I think the previous behavior was buggy, but
there's still a backward-compatibility question to consider.
R=rsc
CC=golang-dev, n13m3y3r
https://golang.org/cl/6938068
|
|
Fixes #4512.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6917043
|
|
Previously, multi-byte characters were not allowed. Also certain single-byte
characters, such as '-', were disallowed.
Fixes #3813.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6641052
|
|
The generated encodings are those from
http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html#charescaping
The change to the decoder ensures that we turn 
 in the
input into \r, not \n.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6747043
|
|
R=rsc, n13m3y3r
CC=golang-dev
https://golang.org/cl/6330061
|
|
Fixes #3773.
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/6327053
|
|
Fixes #3447.
R=rsc, gustavo
CC=golang-dev
https://golang.org/cl/6039045
|
|
This CL makes
type T struct { *U }
behave in a similar way to:
type T struct { U }
Fixes #3108.
R=golang-dev, rsc, gustavo
CC=golang-dev
https://golang.org/cl/5694044
|
|
No real problem.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5717049
|
|
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5697043
|
|
Anonymous pointer fields is not yet supported.
The problem is documented in issue 3108.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5694043
|
|
This also fixes MarshalIndent's example after the
recent formatting convention changes.
Fixes #2831.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5671062
|
|
An unindented XML example is hard to follow. MarshalIndent
allows moving the example over to a test file (and fixing it).
R=golang-dev, r, gustavo, r, rsc
CC=golang-dev
https://golang.org/cl/5674050
|
|
encoding/xml: handle time.Time as recognized type
The long term plan is to define an interface that time.Time
can implement and that encoding/xml can call, but we are
not going to try to define that interface before Go 1.
Instead, special-case time.Time in package xml, because
it is such a fundamental type, as a stop-gap.
The eventual methods will behave this way.
Fixes #2793.
R=golang-dev, r, r, n13m3y3r
CC=golang-dev
https://golang.org/cl/5634051
|
|
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
|
|
Fixes #2850.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5645043
|
|
Detected semi-automatically. There are probably more.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5620046
|