Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / GetElementValue Method / GetElementValue(XmlNode,String,String) Method
XML node to look into
XPath expression identifying the node to get value for
The default value to return if the specified node could not be found
In This Topic
    GetElementValue(XmlNode,String,String) Method
    In This Topic
    Gets text value from the given XmlNode for node specified by the given XPath expression
    Syntax
    public static string GetElementValue( 
       XmlNode element,
       string xpath,
       string defaultValue
    )

    Parameters

    element
    XML node to look into
    xpath
    XPath expression identifying the node to get value for
    defaultValue
    The default value to return if the specified node could not be found

    Return Value

    Text value for the required node
    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