Home | History | Annotate | Download | only in xml

Lines Matching defs:Marshaler

78 // Marshaler is the interface implemented by objects that can marshal
94 type Marshaler interface {
186 // such as Encode or EncodeElement (or a custom Marshaler's MarshalXML invoked
390 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
422 // Check for marshaler.
424 return p.marshalInterface(val.Interface().(Marshaler), defaultStart(typ, finfo, startTemplate))
429 return p.marshalInterface(pv.Interface().(Marshaler), defaultStart(pv.Type(), finfo, startTemplate))
433 // Check for text marshaler.
614 // since it has the Marshaler methods.
620 // marshalInterface marshals a Marshaler interface value.
621 func (p *printer) marshalInterface(val Marshaler, start StartElement) error {