Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
QuestionHow do I ... Pin
BillAnton18-May-04 10:58
BillAnton18-May-04 10:58 
AnswerRe: How do I ... Pin
Frank Lepkowski18-May-04 11:08
Frank Lepkowski18-May-04 11:08 
AnswerRe: How do I ... Pin
Ryan Roberts18-May-04 11:10
Ryan Roberts18-May-04 11:10 
GeneralRe: How do I ... Pin
BillAnton19-May-04 5:17
BillAnton19-May-04 5:17 
AnswerRe: How do I ... Pin
Grimolfr19-May-04 8:09
Grimolfr19-May-04 8:09 
GeneralCrystal Reports with C# Question Pin
frank2118-May-04 10:48
frank2118-May-04 10:48 
Generalformatting XML problem Pin
JockerSoft18-May-04 10:15
JockerSoft18-May-04 10:15 
GeneralRe: formatting XML problem Pin
Heath Stewart18-May-04 10:24
protectorHeath Stewart18-May-04 10:24 
Don't use a DataSet. It outputs XML in specific ways - namely as elements. Instead, see the classes in the System.Xml namespace. You could enumerate the tables and columns in your DataSet (or use an XmlDataDocument) and then write them out to a file using an XmlTextWriter, which allows you to write attributes, elements, comments, and even processing instructions however you want. Lots of samples are included in the class documentation for the System.Xml namespace.

One other option is to save this to a file or a MemoryStream and then load it into an XmlDocument or some other class. You could then use a XslTransform to transform the elements into attributes.

 

Microsoft MVP, Visual C#
My Articles
GeneralModems and applications Pin
bouli18-May-04 8:42
bouli18-May-04 8:42 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 9:40
protectorHeath Stewart18-May-04 9:40 
GeneralRe: Modems and applications Pin
bouli18-May-04 9:46
bouli18-May-04 9:46 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 9:52
protectorHeath Stewart18-May-04 9:52 
GeneralRe: Modems and applications Pin
bouli18-May-04 9:54
bouli18-May-04 9:54 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 9:59
protectorHeath Stewart18-May-04 9:59 
GeneralRe: Modems and applications Pin
bouli18-May-04 10:01
bouli18-May-04 10:01 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 10:04
protectorHeath Stewart18-May-04 10:04 
GeneralRe: Modems and applications Pin
bouli18-May-04 10:06
bouli18-May-04 10:06 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 10:07
protectorHeath Stewart18-May-04 10:07 
GeneralRe: Modems and applications Pin
bouli18-May-04 10:12
bouli18-May-04 10:12 
GeneralRe: Modems and applications Pin
Heath Stewart18-May-04 10:20
protectorHeath Stewart18-May-04 10:20 
GeneralRe: Modems and applications Pin
bouli18-May-04 10:25
bouli18-May-04 10:25 
GeneralRe: Modems and applications Pin
Dave Kreskowiak18-May-04 12:23
mveDave Kreskowiak18-May-04 12:23 
GeneralRe: Modems and applications Pin
Dave Kreskowiak18-May-04 9:54
mveDave Kreskowiak18-May-04 9:54 
GeneralRe: Modems and applications Pin
bouli18-May-04 9:56
bouli18-May-04 9:56 
GeneralRe: Modems and applications Pin
Dave Kreskowiak18-May-04 10:30
mveDave Kreskowiak18-May-04 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.