Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compare refs to XMLDOM nodes in VFP?
Message
 
À
23/04/2007 20:42:11
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01219142
Message ID:
01219198
Vues:
27
Hi Andey
If you want compare two nodes you can compare their XML
e1P = e1.previousSibling && NEED for next line effect
Now VFP "add" property previousSibling to VFP object e1
?e1.xml+' '+e0N.xml+' '+TRANSFORM(COMPOBJ( e1, e0N ))&&Out <x/> <x/> F - 
Object e0N has not property previousSibling

That's all

MartiJ

>
>LOCAL oxml, e0, e1, e0N, e1P
>oxml = CREATEOBJECT('Msxml2.DOMDocument')
>oxml.loadXml( '<r><a/><x/></r>' )
>e0 = oxml.documentElement.childNodes.Item(0)
>e1 = oxml.documentElement.childNodes.Item(1)
>e0N = e0.nextSibling
>?e1.xml+' '+e0N.xml+' '+TRANSFORM(e1=e0N)&&Out <x/> <x/> F - Why? Bug?
>?e1.xml+' '+e0N.xml+' '+TRANSFORM(COMPOBJ( e1, e0N ))&&Out <x/> <x/> T - OK
>e1P = e1.previousSibling && NEED for next line effect
>?e1.xml+' '+e0N.xml+' '+TRANSFORM(COMPOBJ( e1, e0N ))&&Out <x/> <x/> F - Why? Bug?
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform