Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding/xml: unexpected behavior of decoder.Skip #33222

Open
GreenHedgehog opened this issue Jul 22, 2019 · 1 comment
Open

encoding/xml: unexpected behavior of decoder.Skip #33222

GreenHedgehog opened this issue Jul 22, 2019 · 1 comment

Comments

@GreenHedgehog
Copy link

@GreenHedgehog GreenHedgehog commented Jul 22, 2019

What version of Go are you using (go version)?

$ go version
go1.12.4 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/alef/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/alef/go_ws"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build838012780=/tmp/go-build -gno-record-gcc-switches"

What did you do?

https://play.golang.org/p/-DttEFaM_L9

What did you expect to see?

some value 
some value 

What did you see instead?

some value 
 XML syntax error on line 1: unexpected end element 

It a lit bit discouraged, what xml.Skip not working with RawToken, this behavior not mentioned in xml.Skip description.

@julieqiu

This comment has been minimized.

Copy link

@julieqiu julieqiu commented Jul 29, 2019

/cc @rsc per owners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.