Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / GetElementValue Method / GetElementValue(String,String) Method
The XML to extract the element or attribute value from.
Name of the element or attribute to search for.
In This Topic
    GetElementValue(String,String) Method
    In This Topic
    Gets the value of the first element or attribute in a piece of XML.
    Syntax
    public static string GetElementValue( 
       string xml,
       string element
    )

    Parameters

    xml
    The XML to extract the element or attribute value from.
    element
    Name of the element or attribute to search for.

    Return Value

    The value of the first element or attribute. If there is no such element or attribute in the XML, an empty string is returned.
    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