Create xml file in asp.net with C#
-
Hi I got one task in my project..i am new to C# technolgies..Please suggest me some way,.. I have some fields ssn,Firstname,lastname,Dayofbirth,Dayofmonth,Dayofyear,sex,Fathers surname,father intials and i have some search conditions to search the data..like 1.Fname,Lanme ,Doy 2.Lname,Fatherssurname,DOB,DOM,DOY 3.ssn..etc when the user enter the values and clicks submit button the vluea are matching with any of my search condition i have to generate xml file and send to the task table in database.. How can i do that ??? first i want to create xml file..how to do tht ? after creating xml file..i have to write looping statement right??my condittion statement like how?? if(!ssn=null):confused: { ?? }
-
Hi I got one task in my project..i am new to C# technolgies..Please suggest me some way,.. I have some fields ssn,Firstname,lastname,Dayofbirth,Dayofmonth,Dayofyear,sex,Fathers surname,father intials and i have some search conditions to search the data..like 1.Fname,Lanme ,Doy 2.Lname,Fatherssurname,DOB,DOM,DOY 3.ssn..etc when the user enter the values and clicks submit button the vluea are matching with any of my search condition i have to generate xml file and send to the task table in database.. How can i do that ??? first i want to create xml file..how to do tht ? after creating xml file..i have to write looping statement right??my condittion statement like how?? if(!ssn=null):confused: { ?? }
You might want to check out the XML DOM tutorials at www.w3schools.com
-
Hi I got one task in my project..i am new to C# technolgies..Please suggest me some way,.. I have some fields ssn,Firstname,lastname,Dayofbirth,Dayofmonth,Dayofyear,sex,Fathers surname,father intials and i have some search conditions to search the data..like 1.Fname,Lanme ,Doy 2.Lname,Fatherssurname,DOB,DOM,DOY 3.ssn..etc when the user enter the values and clicks submit button the vluea are matching with any of my search condition i have to generate xml file and send to the task table in database.. How can i do that ??? first i want to create xml file..how to do tht ? after creating xml file..i have to write looping statement right??my condittion statement like how?? if(!ssn=null):confused: { ?? }
To create an XML file you can use LINQ. It's like your Database Query....You can learn it easily also it is very useful. Otherwise you have to take care of child elements and sub elements and so on...with a hell lot of conditions in LOOPS.
It's not enough to be the best, when you have capability to be great....