Element returns an etree.Element representing the object in XML form.
()
| 947 | |
| 948 | // Element returns an etree.Element representing the object in XML form. |
| 949 | func (s *Status) Element() *etree.Element { |
| 950 | el := etree.NewElement("samlp:Status") |
| 951 | el.AddChild(s.StatusCode.Element()) |
| 952 | if s.StatusMessage != nil { |
| 953 | el.AddChild(s.StatusMessage.Element()) |
| 954 | } |
| 955 | if s.StatusDetail != nil { |
| 956 | el.AddChild(s.StatusDetail.Element()) |
| 957 | } |
| 958 | return el |
| 959 | } |
| 960 | |
| 961 | // StatusCode represents the SAML object of the same name. |
| 962 | // |