Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with XMLToCursor() with binary and memo fields
Message
 
 
À
21/03/2004 15:41:19
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00888320
Message ID:
00888395
Vues:
12
Hi, Michel.

>I have an XML which has the following on top for the schema:
>
>
><xs:element name="motpasse" type="xs:base64Binary" minOccurs="0" />
><xs:element name="prenom" type="xs:string" minOccurs="0" />
>
>
>If I do a simple XMLToCursor(), such as:
>
>
>XMLTOCURSOR(FILETOSTR('d:\a.xml'),'Temp')
>
>
>The related fields for that schema attributes would be returned as memo fields. How can I have those converted to Character Binary and Character fields by the use of XMLToCursor()?

AFAIK, you can't with XmltoCursor(), but you can make some manipulation with an XmlAdapter. Basically, once you called the LoadXml and read it, you can access the XmlFields collection for the proper XmlTable (if you have more than one), and then change the data types.

Hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform