how read xml in vb6?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason7899
    New Member
    • Mar 2008
    • 59

    how read xml in vb6?

    hi,
    i need import some xml files to my app and all that i found is some dlls and ocx and vb.net resource that can do that, but i need so more simple i have found this:
    msxml.dll that is installed on my pc i have tryed this

    XML.OpenXML "c:\import_xml. xml"

    MsgBox XML.ReadNode("/ORIGEM")
    MsgBox XML.ReadNode("/ORIGEM/DATA")

    but the info appear in blank there is any special way to save the xml?
    the xml have this format:

    <ORIGEM>1</ORIGEM>
    <DATA>2008-03-29</DATA>
    <MOEDA>EUR</MOEDA>
    <IVAINCLUIDO> 0</IVAINCLUIDO>

    other app can open the same file there is other way to open a xml file?
    thanks a lot for your help
Working...