How do we get the display_value in this node?
assigned_to display_value="GROUP">sampletext</assigned_to>
as my code xNode.NodeValue
returns only this "sampletext
"
sample code:
Public Sub LoadNodesIntoRs(ByRef nodes As MSXML2.IXMLDOMNodeList, rs AsADODB.Recordset, recordCount As Integer)
Dim xNode As MSXML2.IXMLDOMNode
Dim fieldIndex As Integer
For Each xNode In nodes
If xNode.NodeType = NODE_TEXT Then
Select Case xNode.ParentNode.nodeName
Case "assigned_to"
fieldIndex = 0
Case "severity"
fieldIndex = 1
Case "urgency"
fieldIndex = 2
End Select
rs(fieldIndex) = xNode.NodeValue
End If
If xNode.HasChildNodes Then
'recurive call for the next node
LoadNodesIntoRs xNode.ChildNodes, rs, recordCount
End If
Next xNode
End Sub
Please help. Thank you.