Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / SetAttributeValue Method / SetAttributeValue(XmlElement,String,String) Method
XML element to set attribute value in
The name of the attribute to set value for
The value to set
In This Topic
    SetAttributeValue(XmlElement,String,String) Method
    In This Topic
    Sets value of the specified attribute in the given XML element
    Syntax
    public static void SetAttributeValue( 
       XmlElement xmlElem,
       string attribute,
       string value
    )

    Parameters

    xmlElem
    XML element to set attribute value in
    attribute
    The name of the attribute to set value for
    value
    The value to set
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also