Element returns an etree.Element representing the object in XML form.
()
| 582 | |
| 583 | // Element returns an etree.Element representing the object in XML form. |
| 584 | func (s *Status) Element() *etree.Element { |
| 585 | el := etree.NewElement("samlp:Status") |
| 586 | el.AddChild(s.StatusCode.Element()) |
| 587 | if s.StatusMessage != nil { |
| 588 | el.AddChild(s.StatusMessage.Element()) |
| 589 | } |
| 590 | if s.StatusDetail != nil { |
| 591 | el.AddChild(s.StatusDetail.Element()) |
| 592 | } |
| 593 | return el |
| 594 | } |
| 595 | |
| 596 | // StatusCode represents the SAML object of the same name. |
| 597 | // |