Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML and White Spaces
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
XML and White Spaces
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
00966612
Message ID:
00966612
Vues:
49
I have a function in VFP that goes like this:
select padr(field,30) as field1,primarykey,space(20) as placeholder ;
from mytable into cursor _temp

cursortoxml([_temp],[lcXML])
return lcXML
.NET takes this XML string and creates a dataset. However, this:
cursortoxml([_temp],[lcXML],1,4)
return lcXML
which is supposed to be the default third paramter and the forth parameter = 4 which means preserve whitespaces. I need .net to preserve field1 to 30 characters but it doesn't. In fact, it doesn't even preserve fieldnames and the number of columns and seems to be totally confused by the XML that is returned by cursortoxml([_temp],[lcXML],1,4).

What is the correct syntax to preserve white space using cursortoxml() when passing the XML to .NET?
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform