]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: add InputOffset method to Decoder
authorRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 22:00:06 +0000 (18:00 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 22:00:06 +0000 (18:00 -0400)
commitb91aea55366d3f72c6f16a2cb5651b4e3aa5fb0c
tree1d7ad9ec724637d258d08c10f73a50439d492bbe
parentfef54b22f8ee7a57a5ba04a6a02244a10f90e904
encoding/xml: add InputOffset method to Decoder

Among other things, this allows users to match the decoded
pieces with the original XML, which can be necessary for
implementing standards like XML signatures.

Fixes #8484.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/122960043
src/pkg/encoding/xml/xml.go
src/pkg/encoding/xml/xml_test.go