Dim oDocument As DOMDocument Dim oElement As IXMLDOMElementIn VFP, I can do:
LOCAL oDocument as MSXML2.DOMDocument oDocument = createobject('msxml.domdocument') Local oElemProducto as MSXML2.IXMLDOMElement oElemProducto = CreateObject( 'msxml.IXMLDOMElement' )But the last line give me an error, saying that class definition "msxml.IXMLDOMElement" doesn't exist. This is true, as this is an Interface, not a class, as I can see it in the Object Browser.
Set oElement = oDocument.documentElement With oElement oHolder.cProduct = .getAttributeNode("Code").Text oHolder.cDescrip = .getAttributeNode("Description").Text end withAnd that's what he can't access.