Manipulate XML in Visual Basic

wxdqz

New Member
I am confused about which XML API to use in Visual Basic?Shall I use MSXML.IXMLDocument or XMLDocument or DOMDocument Object? Howcan I retrieve the root of the tree structufe of an XML file using DOM?For exampleDim oXML As MSXML.XMLDocumentDim oroot As ObjectSet oXML = New MSXML.XMLDocumentoXML.url = "the path_of_the_XML_file"Set oroot = oXML.rootAfter these commands oroot doesn't contain the root of the XML file. Whynot? What can I do to retrieve it?Thanks in advance
 
Back
Top