Windows.Data.Xml.Dom.XmlElement.SetAttribute C# (CSharp) Method

SetAttribute() public method

public SetAttribute ( [ attributeName, [ attributeValue ) : void
attributeName [
attributeValue [
return void
		public extern void SetAttribute([In] string attributeName, [In] string attributeValue);
		public extern void RemoveAttribute([In] string attributeName);

Usage Example

            public override XmlElement HtmlToTextNode(XmlDocument ownerDoc, string html)
            {
                XmlElement el = ownerDoc.CreateElementNS(NamespaceUri, "atom:content");

                el.SetAttribute("type", "text/html");
                el.SetAttribute("mode", "escaped");
                el.InnerText = html;
                return(el);
            }
All Usage Examples Of Windows.Data.Xml.Dom.XmlElement::SetAttribute