SecurityElement element = new SecurityElement("MyElement"); element.AddAttribute("Name", "John"); element.AddChild(new SecurityElement("JobTitle", "Developer"));
SecurityElement element = SecurityElement.FromString("This code parses a SecurityElement object from an XML string, then retrieves the value of the "Name" attribute and the text of the "JobTitle" child element. The System.Security.SecurityElement class is part of the .NET Framework Class Library, which is included in the .NET runtime package."); string name = element.Attribute("Name"); string jobTitle = element.Children[0].Text; Developer