Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I instantiate the IXMLDOMElement Interface
Message
From
29/06/2002 11:20:03
 
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00673609
Message ID:
00673614
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
Your friend can't create instances of IXMLDOMElement. What he has to do is to retrieve the document element from the DOM (no VFP7 at hand, but declaration put aside this works with VFP6 also):
* LOCAL oDocument as MSXML2.DOMDocument
* Local oElement as MSXML2.IXMLDOMElement

oDocument = createobject('MSXML2.DOMDocument.3.0')

oDocument.Async = .f.
* retrieve document
oDocument.loadXML("some_document.xml")

oElemProducto = oDocument.documentElement
WITH oElemProducto
  oHolder.cProduct = .getAttributeNode("Code").Text
  ...
ENDWITH
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform