Element returns an etree.Element representing the object in XML form.
()
| 1190 | |
| 1191 | // Element returns an etree.Element representing the object in XML form. |
| 1192 | func (a *AttributeStatement) Element() *etree.Element { |
| 1193 | el := etree.NewElement("saml:AttributeStatement") |
| 1194 | for _, v := range a.Attributes { |
| 1195 | el.AddChild(v.Element()) |
| 1196 | } |
| 1197 | return el |
| 1198 | } |
| 1199 | |
| 1200 | // Attribute represents the SAML element Attribute. |
| 1201 | // |