• Russ Cox's avatar
    encoding/xml: name space bug fixes · 4dd3e1e8
    Russ Cox authored
    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
    4dd3e1e8
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
compress Loading commit data...
container Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
io Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
os Loading commit data...
path Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...