A+C: Adrian Nos (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7526046
net/rpc/jsonrpc: nil pointer deference on invalid reply.
Fixes issue 5006.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7691045

Committer: Russ Cox <rsc@golang.org>
encoding/xml: name space bug fixes

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 issue 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 issue 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 issue 3526.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7227056