Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with CursorToXML and XMLDOM
Message
 
To
11/11/2001 22:27:58
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00580348
Message ID:
00581255
Views:
18
>Hi!
>
>I´ve run three simple commands as it follows:
>
>CursorToXML("Cursor","lcXML",1,1)
>oXML = CreateObject("Microsoft.XMLDOM")
>oXML.LoadXML(lcXML)

You need to run the result from CursorToXML() into UTF because that's teh default for XML documents. Use the encoding switch for that...

+++ Rick ---

>
>But it returns a .F.
>
>After some attempts, I´ve discovered that the problem was with the encoding... I´ve need to ripped off the enconding part, doing the following workaround that works fine:
>
>oXML.LoadXML(Strtran(lcXML,[ encoding="Windows-1252"],""))
>
>
>I´ve played with all the options of the CursorToXML´s third parameter, but anyone does works...
>
>Does anybody have any idea of what´s happening?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform