Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / XmlUtility Class / GetElement Method
XML document to get the XmlElement object from
Path of the element to get from the xml document
if true the element will be created if it does not already exist
In This Topic
    GetElement Method (XmlUtility)
    In This Topic
    Gets an XmlElement object for the given XPath expression from the XML document
    Syntax
    public static XmlElement GetElement( 
       XmlNode xmlDoc,
       string xpath,
       bool createElement
    )

    Parameters

    xmlDoc
    XML document to get the XmlElement object from
    xpath
    Path of the element to get from the xml document
    createElement
    if true the element will be created if it does not already exist

    Return Value

    XmlElement matching given xpath
    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