Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML and White Spaces
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
XML and White Spaces
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966612
Message ID:
00966612
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform