Element returns an etree.Element representing the object in XML form.
()
| 604 | |
| 605 | // Element returns an etree.Element representing the object in XML form. |
| 606 | func (s *StatusCode) Element() *etree.Element { |
| 607 | el := etree.NewElement("samlp:StatusCode") |
| 608 | el.CreateAttr("Value", s.Value) |
| 609 | if s.StatusCode != nil { |
| 610 | el.AddChild(s.StatusCode.Element()) |
| 611 | } |
| 612 | return el |
| 613 | } |
| 614 | |
| 615 | // StatusSuccess means the request succeeded. Additional information MAY be returned in the <StatusMessage> and/or <StatusDetail> elements. |
| 616 | // |