Hi friends,
I need to transform data from XML & store in a ACCESS Table,
I have a code which displays the msgs as msgbox,but I need to insert in a table.I used XML4 here.I am relatively new to VB6 XML.Can someone tel me how to do it or provide a sample code.I Need it urgently for my proj
'We make use of XML4 here
Dim objDOM As DOMDocument40
Private Sub Command1_Click()
Dim ndPerson As IXMLDOMNode
'IXMLDOMNode & DOMDocument40 are classes of MSXML2
Set ndPerson = objDOM.selectSingleNode("/ATM") 'contains root
MsgBox ndPerson.Text
Set ndPerson = Nothing
End Sub
Private Sub form_load()
Set objDOM = New DOMDocument40
If Not objDOM.Load("person.xml") Then
MsgBox "Did not load person.xml because " & objDOM.parseError.reason
Exit Sub
End If
End Sub
here,person.xml is name of xml file.