Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle special characters in XML
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00577281
Message ID:
00577417
Vues:
24
>>>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.
>>>
>>>< content >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, The Kit Box: Tell Me About it < /content >
>>
>>Hi, Evan
>>
>>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')
As António posted, it appears to do with the length of the static string. Try:
lcvar = [<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>]
? xmltocursor(lcvar,'f')
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform