Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
Christian Graus22-Jun-08 19:44
protectorChristian Graus22-Jun-08 19:44 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
benjamin yap22-Jun-08 19:49
benjamin yap22-Jun-08 19:49 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
Christian Graus22-Jun-08 19:57
protectorChristian Graus22-Jun-08 19:57 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
Christian Graus22-Jun-08 22:56
protectorChristian Graus22-Jun-08 22:56 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
darkelv22-Jun-08 19:50
darkelv22-Jun-08 19:50 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
benjamin yap22-Jun-08 19:53
benjamin yap22-Jun-08 19:53 
GeneralRe: Which to use? Database(sql,access) , XML, flat file Pin
darkelv23-Jun-08 4:15
darkelv23-Jun-08 4:15 
QuestionChange an XML attribute using C# Pin
nyjcr22-Jun-08 16:57
nyjcr22-Jun-08 16:57 
Hello all,

I'm trying to change an attribute in an XML document based on some criteria,
I'm using C#, For example I need to do a "search" based on a person's user id,
the user id is an attribute of a node name student.

if the userid matches a text box I then need to change the Grade attribute of the student.

for example, my xml document looks like this


<!--List of students. -->
<Students>
<Student userID="567" Registration="Reg268" Grade="A" Subject="Math"/>
<Student userID="345" Registration="Reg951" Grade="B" Subject="Science"/>
<Student userID="475" Registration="Reg195" Grade="B" Subject="Science"/>
</Students>

I want to 'search' for student 345 and then change the Grade to an 'A'

Any help would be greatly appreciated.
JC
AnswerRe: Change an XML attribute using C# Pin
Christian Graus22-Jun-08 17:57
protectorChristian Graus22-Jun-08 17:57 
GeneralRe: Change an XML attribute using C# Pin
nyjcr23-Jun-08 7:56
nyjcr23-Jun-08 7:56 
Questionc# Pin
ManojKumarShah201722-Jun-08 16:49
ManojKumarShah201722-Jun-08 16:49 
AnswerRe: c# Pin
Bert delaVega22-Jun-08 17:37
Bert delaVega22-Jun-08 17:37 
AnswerRe: c# Pin
Christian Graus22-Jun-08 18:00
protectorChristian Graus22-Jun-08 18:00 
Questionmultiline textbox to .doc file Pin
ginji2022-Jun-08 15:25
ginji2022-Jun-08 15:25 
AnswerRe: multiline textbox to .doc file Pin
Christian Graus22-Jun-08 16:03
protectorChristian Graus22-Jun-08 16:03 
GeneralRe: multiline textbox to .doc file Pin
ginji2022-Jun-08 19:46
ginji2022-Jun-08 19:46 
GeneralRe: multiline textbox to .doc file Pin
Christian Graus22-Jun-08 19:56
protectorChristian Graus22-Jun-08 19:56 
QuestionCodeDOM passing parameters Pin
xJorDyx22-Jun-08 13:46
xJorDyx22-Jun-08 13:46 
AnswerRe: CodeDOM passing parameters Pin
Mark Churchill22-Jun-08 20:21
Mark Churchill22-Jun-08 20:21 
GeneralRe: CodeDOM passing parameters Pin
xJorDyx23-Jun-08 9:35
xJorDyx23-Jun-08 9:35 
QuestionCan we get program's number line after compiling the source ? Pin
Mohammad Dayyan22-Jun-08 12:59
Mohammad Dayyan22-Jun-08 12:59 
AnswerRe: Can we get program's number line after compiling the source ? Pin
Gareth H22-Jun-08 13:05
Gareth H22-Jun-08 13:05 
AnswerRe: Can we get program's number line after compiling the source ? Pin
Luc Pattyn22-Jun-08 13:18
sitebuilderLuc Pattyn22-Jun-08 13:18 
GeneralRe: Can we get program's number line after compiling the source ? Pin
Mohammad Dayyan23-Jun-08 2:07
Mohammad Dayyan23-Jun-08 2:07 
GeneralRe: Can we get program's number line after compiling the source ? Pin
Luc Pattyn23-Jun-08 2:08
sitebuilderLuc Pattyn23-Jun-08 2:08 

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.