Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / GetElementValue Method / GetElementValue(XmlElement,String,String) Method
XML element 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(XmlElement,String,String) Method
    In This Topic
    Gets text value from the given XmlElement for node specified by the given XPath expression
    Syntax
    public static string GetElementValue( 
       XmlElement element,
       string xpath,
       string defaultValue
    )

    Parameters

    element
    XML element 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