xmlDecoder provide decoded value in xml.
(body io.Reader, v interface{})
| 77 | |
| 78 | // xmlDecoder provide decoded value in xml. |
| 79 | func xmlDecoder(body io.Reader, v interface{}) error { |
| 80 | d := xml.NewDecoder(body) |
| 81 | return d.Decode(v) |
| 82 | } |
| 83 | |
| 84 | // xmlDecodeAndBody reads the whole body up to 1MB and |
| 85 | // tries to XML decode it into v. |