p_GetXMLElementAttrText (QTP, TestComplete, VBScript)

Categories: Source codeXML Data

Parent page: Service Functions – MSXMLDOM (QTP, TestComplete, VBScript)

Description

Returns value of a child attribute.

Implementation

Private Function p_GetXMLElementAttrText(ByRef objXMLElement, ByVal sAttrName)
 Dim sResult
 sResult = objXMLElement.GetAttribute(sAttrName) 
 If isNull(sResult) Then
 sResult = ""
 End If
 p_GetXMLElementAttrText = sResult
End Function

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by the author is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.