Click here to Skip to main content
15,920,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing Excel cell which made call to C# dll ... Pin
Mycroft Holmes30-Mar-09 21:00
professionalMycroft Holmes30-Mar-09 21:00 
GeneralRe: Accessing Excel cell which made call to C# dll ... Pin
gvanto31-Mar-09 14:24
gvanto31-Mar-09 14:24 
QuestionHow to get pixel value in colored image in c# Pin
Flying_Doc29-Mar-09 16:44
Flying_Doc29-Mar-09 16:44 
AnswerRe: How to get pixel value in colored image in c# Pin
Christian Graus29-Mar-09 19:37
protectorChristian Graus29-Mar-09 19:37 
AnswerRe: How to get pixel value in colored image in c# [modified] Pin
Natza Mitzi29-Mar-09 19:38
Natza Mitzi29-Mar-09 19:38 
GeneralRe: How to get pixel value in colored image in c# Pin
Christian Graus29-Mar-09 19:42
protectorChristian Graus29-Mar-09 19:42 
AnswerRe: How to get pixel value in colored image in c# Pin
Xmen Real 29-Mar-09 19:47
professional Xmen Real 29-Mar-09 19:47 
QuestionHow to convert flat files to XML using c# Pin
SK8429-Mar-09 14:57
SK8429-Mar-09 14:57 
Hello everyone,

I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method. I am given with the various flat files and corresponding mapping files. These mapping files itself are in XML (.ltm extension). Now I have to generate XML files from the flat files that adhere to the schema of these mapping files. And for this I have to use XML serialization and deserialization process written in c# code.

Why XML serialization/deserialization?
Because I have generated xsd of the given xml mapping files and imported that file into my solution as xsd.cs so that I can have various nodes of this mapping file available to me as a classes. I mean, I can directly write classes belonging to various elements in this mapping file. As a result I do not have to parse these mapping files using Read and Write properties.

I am asked to create the instances of these classes and use the serialize/deserialize methods to get the work done. Now my problem is that I do not know how to exactly create the classes in this situation and go about serialization and deserialization. So can any one help me out in this situation by providing some sample codes/snippets related to my work. It would be great if someone can actually provide me with steps/algorithm to go about this project. Let me specify one more thing, all the mapping files corresponding to different flat files have the same structure, only the text values corresponding to various Elements are different.

Thank you very much.
AnswerRe: How to convert flat files to XML using c# Pin
Christian Graus29-Mar-09 19:40
protectorChristian Graus29-Mar-09 19:40 
GeneralRe: How to convert flat files to XML using c# Pin
Pete O'Hanlon29-Mar-09 23:38
mvePete O'Hanlon29-Mar-09 23:38 
GeneralRe: How to convert flat files to XML using c# Pin
Dan Neely30-Mar-09 2:43
Dan Neely30-Mar-09 2:43 
QuestionCommandBehavior.SequentialAccess (SqlDataReader) Pin
Jacob Dixon29-Mar-09 14:55
Jacob Dixon29-Mar-09 14:55 
AnswerRe: CommandBehavior.SequentialAccess (SqlDataReader) Pin
N a v a n e e t h29-Mar-09 17:38
N a v a n e e t h29-Mar-09 17:38 
QuestionSql query designer Pin
Dushan12329-Mar-09 14:12
Dushan12329-Mar-09 14:12 
AnswerRe: Sql query designer Pin
Natza Mitzi29-Mar-09 19:42
Natza Mitzi29-Mar-09 19:42 
QuestionWhen Adding A Control, what events fire? [modified] Pin
Duraplex29-Mar-09 13:09
Duraplex29-Mar-09 13:09 
AnswerRe: When Adding A Control, what events fire? Pin
maxatlis30-Mar-09 7:00
maxatlis30-Mar-09 7:00 
GeneralRe: When Adding A Control, what events fire? Pin
Duraplex30-Mar-09 11:47
Duraplex30-Mar-09 11:47 
Question%SystemRoot%\Microsoft.NET\Framework\ Pin
Mohammad Dayyan29-Mar-09 6:49
Mohammad Dayyan29-Mar-09 6:49 
AnswerRe: %SystemRoot%\Microsoft.NET\Framework\ Pin
Giorgi Dalakishvili29-Mar-09 7:00
mentorGiorgi Dalakishvili29-Mar-09 7:00 
GeneralRe: %SystemRoot%\Microsoft.NET\Framework\ PinPopular
PIEBALDconsult29-Mar-09 7:15
mvePIEBALDconsult29-Mar-09 7:15 
GeneralRe: %SystemRoot%\Microsoft.NET\Framework\ Pin
Giorgi Dalakishvili29-Mar-09 7:23
mentorGiorgi Dalakishvili29-Mar-09 7:23 
AnswerRe: %SystemRoot%\Microsoft.NET\Framework\ [modified] Pin
Alan N29-Mar-09 14:07
Alan N29-Mar-09 14:07 
QuestionC# Windows Application problem Pin
cheese_29-Mar-09 5:23
cheese_29-Mar-09 5:23 
AnswerRe: C# Windows Application problem Pin
JF201529-Mar-09 5:41
JF201529-Mar-09 5:41 

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.