Unmarshaler is the interface implemented by objects that can unmarshal an XML element description of themselves. UnmarshalXML decodes a single XML element beginning with the given start element. If it returns an error, the outer call to Unmarshal stops and returns that error. UnmarshalXML must cons
| 177 | // XML object one token at a time. |
| 178 | // UnmarshalXML may not use d.RawToken. |
| 179 | type Unmarshaler interface { |
| 180 | UnmarshalXML(d *Decoder, start StartElement) error |
| 181 | } |
| 182 | |
| 183 | // UnmarshalerAttr is the interface implemented by objects that can unmarshal |
| 184 | // an XML attribute description of themselves. |