Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compare refs to XMLDOM nodes in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01219142
Message ID:
01219198
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform