Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle special characters in XML
Message
From
05/11/2001 11:20:29
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00577281
Message ID:
00577400
Views:
27
>>>I am trying to get data from Foxcentral and one of the pieces of data as a colon in it. IE, the webbrowser control and XMLToCursor all complain about it. How do I handle ":","-" and other special characters? Here is the tag.
>>>
>>> [...]
>>Like Mike said, there is nothing "special" about : xmlwise (the special entities you should pay attention to are quot, amp, gt, lt and apos). The element you posted is read by my IE without a glitch. As a rule of thumb, I always protect uncontrolled and arbitray text under a CDATA element.
>
>Do you get an error with?
>
>
XMLTOCURSOR("<a><b><content>sdsd In this issue: The Geeky Things We Do, Custom Scripts in IntelliSense, Driving the Data Bus: Become the Master of All You Survey-Using XML as a Flexible Data Capture and Retrieval Medium, Integrating Acrobat with VFP-Part 2</content></b></a>",'f')
I'm not working with VFP7 (yet) but maybe this is a "string length" issue (wider than 254). Put the string in a .xml file and read it back and see if it the error persists.

bye
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform