Element returns an etree.Element representing the object in XML form.
()
| 969 | |
| 970 | // Element returns an etree.Element representing the object in XML form. |
| 971 | func (s *StatusCode) Element() *etree.Element { |
| 972 | el := etree.NewElement("samlp:StatusCode") |
| 973 | el.CreateAttr("Value", s.Value) |
| 974 | if s.StatusCode != nil { |
| 975 | el.AddChild(s.StatusCode.Element()) |
| 976 | } |
| 977 | return el |
| 978 | } |
| 979 | |
| 980 | // StatusSuccess means the request succeeded. Additional information MAY be returned in the <StatusMessage> and/or <StatusDetail> elements. |
| 981 | // |