preload

p_GetXMLElementAttrText (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Aug 05, 2008 | 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 Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.