Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: add Decoder.InputOffset method #8484
Implementing XML signatures requires using the Decoder to read token by token but be able to extract the raw XML behind a given CharData. The Decoder returns decoded CharData - "hello world" and "hello world" and "<![CDATA[hello world]]>" are all returned as "hello world". Providing the input offset allows users of Decoder to go back to the original XML to find the encoded version. CL 122960043 does this.