Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recordset to Cursor
Message
 
To
22/02/2006 12:17:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01098156
Message ID:
01098229
Views:
16
xDOM = NEWOBJECT('MSXML.DOMDocument')
oRS.Save(xdom, 1)
XMLTOCURSOR(xdom.xml, "MyCursorName", 1028)
>PS: Wouldn't work with all type of ADO recordsets - they don't work by any means anyway.
>Cetin

OK Cetin, this works. The only problem it has is with unsafe characters (such as if the data holds URLs and such). That's what was throwing the error and causing the XML not to be created properly. I wish there was an easy way to escape the unsafe characters using the DOMDocument object, but I guess I can't have it all. Thank you for this, and if you'll be kind enough to reply to this post, I'd like to mark your reply as the solution since I guess I can't change the earlier help star I gave you to a solution.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform