Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / SetElementValue Method / SetElementValue(XmlNode,String,String,Boolean) Method
XML document to set value in
XPath expression identifying the node to set value for
The value to set
If true, a new node will be created if it does not exist already
In This Topic
    SetElementValue(XmlNode,String,String,Boolean) Method
    In This Topic
    Sets text value of the node specified by the given XPath expression in the given XML document
    Syntax
    public static void SetElementValue( 
       XmlNode xmlDoc,
       string xpath,
       string value,
       bool createElement
    )

    Parameters

    xmlDoc
    XML document to set value in
    xpath
    XPath expression identifying the node to set value for
    value
    The value to set
    createElement
    If true, a new node will be created if it does not exist already
    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