aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/encoding/xml
AgeCommit message (Collapse)Author
2013-11-01[release-branch.go1.2] encoding/xml: fix doc commentAndrew Gerrand
««« 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
2013-10-17encoding/xml: accept chains of interfaces and pointersRuss Cox
Fixes #6556. R=golang-dev, iant, adg CC=golang-dev https://golang.org/cl/14747043
2013-09-17encoding/xml: remove dead codeRobert Griesemer
Avoid future 'declared and not used error'. See also issue 6414. R=r CC=golang-dev https://golang.org/cl/13242058
2013-09-15encoding/xml: document behavior for undefined name space prefixesRuss Cox
Fixes #5626. R=golang-dev, dominik.honnef CC=golang-dev https://golang.org/cl/13702043
2013-09-12encoding/xml: add Encoder.FlushRuss Cox
Fixes #6365. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13627046
2013-09-09encoding/xml: fix panic in MarshalRuss Cox
Fixes #6341. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13512048
2013-09-06undo CL 13004046 / 5db14b33d6efRob Pike
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
2013-08-19encoding/xml: flush buffer after encoding tokenDominik Honnef
R=rsc, bradfitz, adg CC=golang-dev https://golang.org/cl/13004046
2013-08-14encoding/xml: support generic encoding interfacesRuss Cox
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
2013-08-14encoding/xml: add, support Marshaler interfaceRuss Cox
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
2013-08-14encoding/xml: add, support Unmarshaler interfaceRuss Cox
See golang.org/s/go12xml for design. R=golang-dev, dominik.honnef, dan.kortschak CC=golang-dev https://golang.org/cl/12556043
2013-08-14undo CL 12603044 / 2ca230b93195Russ Cox
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
2013-08-14encoding/xml: add, support Marshaler interfaceRuss Cox
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
2013-08-08encoding/xml: allow attributes stored in pointers to be marshaled.Dmitriy Shelenin
Fixes #5334. R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/8653047
2013-08-05undo CL 12486043 / ab644299d124Brad Fitzpatrick
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
2013-08-05all: use strings.IndexByte instead of Index where possibleBrad Fitzpatrick
R=golang-dev, khr CC=golang-dev https://golang.org/cl/12486043
2013-07-30encoding/xml: Do not pass through invalid utf8 bytesAlex A Skinner
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
2013-07-10encoding/xml: fix typo in docsAndrew Gerrand
Fixes #5843. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/11073043
2013-03-13encoding/xml: rewrite invalid code points to U+FFFD in Marshal, EscapeOlivier Saingre
Fixes #4235. R=rsc, dave, r, dr.volker.dobler CC=golang-dev https://golang.org/cl/7438051
2013-03-13encoding/xml: predefine xml name space prefixRuss Cox
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
2013-03-12encoding/xml: reject > chain with non-elementRuss Cox
Fixes #5033. R=golang-dev, r CC=golang-dev https://golang.org/cl/7764044
2013-03-12encoding/xml: name space bug fixesRuss Cox
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
2013-03-12encoding/xml: fix spurious "no semicolon" in errorRuss Cox
Noticed while doing other XML investigations. R=golang-dev, r CC=golang-dev https://golang.org/cl/7550045
2013-03-11encoding/xml: allow embedded non-structsRuss Cox
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
2013-03-11all: remove now-unnecessary unreachable panicsBrad Fitzpatrick
Take advantage of the new terminating statement rule. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/7712044
2013-02-20encoding/xml: make sure Encoder.Encode reports Write errors.Olivier Saingre
Fixes #4112. R=remyoudompheng, daniel.morsing, dave, rsc CC=golang-dev https://golang.org/cl/7085053
2013-02-13encoding/xml: fix htmlAutoClose and its generating scriptShenghou Ma
Thanks Mitică for reporting this. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7308081
2013-02-03xml: omit newline at beginning of MarshalIndent outputShivakumar GN
(Still valid XML.) Fixes #3354. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7288047
2013-01-30encoding/xml: add (*Encoder).IndentRuss Cox
Exposing this on the Encoder allows streaming generation of indented XML. R=golang-dev, rogpeppe CC=golang-dev https://golang.org/cl/7221075
2013-01-28xml: differentiate between float32 and float64 for marshalSimpleVega Garcia Luis Alfonso
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7235045
2013-01-22xml: Support fields not of type []byte when marshaling ",chardata"Vega Garcia Luis Alfonso
Fixes #4506. R=rsc, remyoudompheng CC=golang-dev https://golang.org/cl/7106045
2013-01-22encoding/xml: simplify copyValueRuss Cox
Delete various complications left over from an earlier reflect API. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7124063
2013-01-18encoding/xml: fix decoding of attributes in to pointer fields.Kamil Kisiel
Fixes #3719. R=anacrolix, rsc CC=golang-dev https://golang.org/cl/7131052
2012-12-22encoding/xml: Marshal ",any" fieldsChris Jones
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
2012-12-10encoding/xml: fix typo in Marshal documentationFrancisco Souza
Fixes #4512. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6917043
2012-10-21encoding/xml: expand allowed entity namesPatrick Smith
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
2012-10-18encoding/xml: correctly escape newline, carriage return, and tabIan Lance Taylor
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
2012-08-31encoding/xml: parse comments in DOCTYPEShawn Smith
R=rsc, n13m3y3r CC=golang-dev https://golang.org/cl/6330061
2012-06-25encoding/csv, encoding/xml: report write errorsJan Ziak
Fixes #3773. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/6327053
2012-05-17encoding/xml: fix decoding of unknown entities in non-strict modeGustavo Niemeyer
Fixes #3447. R=rsc, gustavo CC=golang-dev https://golang.org/cl/6039045
2012-05-16encoding/xml: handle anonymous pointer fieldsGustavo Niemeyer
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
2012-03-01encoding/xml: fix xml test tag usageGustavo Niemeyer
No real problem. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5717049
2012-02-24encoding/xml: fix anonymous field Unmarshal exampleGustavo Niemeyer
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5697043
2012-02-23encoding/xml: add example and docs for anon fieldsGustavo Niemeyer
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
2012-02-22encoding/xml: move Unmarshal example to functionGustavo Niemeyer
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
2012-02-16encoding/xml: add MarshalIndent and move the exampleGustavo Niemeyer
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
2012-02-07time: clean up MarshalJSON, add RFC3339 methodRuss Cox
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
2012-02-08encoding/xml: add support for the omitempty flagGustavo Niemeyer
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
2012-02-07encoding/xml: fix documentation for Decoder.SkipRob Pike
Fixes #2850. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5645043
2012-02-01all packages: fix various typosRobert Griesemer
Detected semi-automatically. There are probably more. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5620046