Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I instantiate the IXMLDOMElement Interface
Message
De
29/06/2002 11:20:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00673609
Message ID:
00673614
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform