...

Package oembed

Overview ▾

type CT_OEmbed

type CT_OEmbed struct {
    OEmbedUrlAttr             string
    MediaTypeAttr             string
    PicLocksAutoForOEmbedAttr *bool
}

func NewCT_OEmbed

func NewCT_OEmbed() *CT_OEmbed

func (*CT_OEmbed) MarshalXML

func (m *CT_OEmbed) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_OEmbed) UnmarshalXML

func (m *CT_OEmbed) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_OEmbed) Validate

func (m *CT_OEmbed) Validate() error

Validate validates the CT_OEmbed and its children

func (*CT_OEmbed) ValidateWithPath

func (m *CT_OEmbed) ValidateWithPath(path string) error

ValidateWithPath validates the CT_OEmbed and its children, prefixing error messages with path

type Oembed

type Oembed struct {
    CT_OEmbed
}

func NewOembed

func NewOembed() *Oembed

func (*Oembed) MarshalXML

func (m *Oembed) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Oembed) UnmarshalXML

func (m *Oembed) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Oembed) Validate

func (m *Oembed) Validate() error

Validate validates the Oembed and its children

func (*Oembed) ValidateWithPath

func (m *Oembed) ValidateWithPath(path string) error

ValidateWithPath validates the Oembed and its children, prefixing error messages with path