Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmltocursor
Message
From
10/07/2009 11:57:37
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01411378
Message ID:
01411423
Views:
40
>>When I use XMLTOCURSOR elements that have 0 or 1 are converted into logical fields. What's a way of preserving data types?
>>
>
>Either provide XML Schema or create a cursor beforehand with desired fields and specify flag 8192
>.
I see.
While I have been working on that I am hitting another problem.
I have an xml file. The following code will prodice an error:
o = createaboject('msxml2.freethreaddomdocument')
o.loadxml(myfile)
?o.getelementbytagname(elementname).item(0).nodetypevalue - error Member ITEM does not evaluate to an object

but this will work:
o.loadxml(filetostr(myfile))

So, what does filetostr do?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform