Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding the XML preserve syntax
Message
From
28/04/2006 20:18:52
 
 
To
28/04/2006 16:29:41
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
01117317
Message ID:
01117731
Views:
16
>It just dawned on me what you were saying about this ... you purposely have put the "preserve" syntax in your XML, correct? Well, of course you'll get the column in Excel, because that's the purpose of that syntax ... to preserve white space (the syntax is actually xml:space="preserve"). If you didn't purposely put that syntax in there, you must have done something other than a simple DataSet.WriteXml() because that will not use that syntax.

This syntax has been put in there by WriteXml(). This is why I am wondering why it is doing that. The field is a one space length. The WriteXml() will put it like that. The only way to avoid that is to Trim() the loRow("Field1"), for example, and that will do it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform