Decode works like xml.Unmarshal, except it reads the decoder stream to find the start element.
(v interface{})
| 117 | // Decode works like xml.Unmarshal, except it reads the decoder |
| 118 | // stream to find the start element. |
| 119 | func (d *Decoder) Decode(v interface{}) error { |
| 120 | return d.DecodeElement(v, nil) |
| 121 | } |
| 122 | |
| 123 | // DecodeElement works like xml.Unmarshal except that it takes |
| 124 | // a pointer to the start XML element to decode into v. |