Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Outlook 2007 - Editing calendar information Pin
lvq68418-May-10 7:43
lvq68418-May-10 7:43 
Questionmodifying a html file in windows c# application Pin
Suunil18-May-10 3:00
Suunil18-May-10 3:00 
AnswerRe: modifying a html file in windows c# application Pin
The Man from U.N.C.L.E.18-May-10 3:07
The Man from U.N.C.L.E.18-May-10 3:07 
GeneralRe: modifying a html file in windows c# application Pin
Suunil18-May-10 3:11
Suunil18-May-10 3:11 
GeneralRe: modifying a html file in windows c# application Pin
T M Gray18-May-10 5:10
T M Gray18-May-10 5:10 
AnswerRe: modifying a html file in windows c# application Pin
Not Active18-May-10 3:54
mentorNot Active18-May-10 3:54 
AnswerRe: modifying a html file in windows c# application Pin
Suunil20-May-10 3:02
Suunil20-May-10 3:02 
QuestionReading integer from an xml file Pin
acont18-May-10 2:41
acont18-May-10 2:41 
I am sending game score to the web service and saving it there to xml file by using the following code:

XmlTextWriter myWriter = new XmlTextWriter("highScores.xml", null);

myWriter.WriteStartDocument();
myWriter.WriteStartElement("highestScore");

myWriter.WriteValue(score);

myWriter.WriteEndElement();
myWriter.WriteEndDocument();

myWriter.Close();

I want to add to this function a condition to save the score only if it's higher than the score which already is in the xml.
I was also trying to make another function to get this highest score from the xml, and return it to the Client.
My problem is that I have no idea how to get this int (as an int) from the xml, I've tried few times on different ways bu still have no idea how to do this. Please help.
AnswerRe: Reading integer from an xml file Pin
Seishin#18-May-10 4:40
Seishin#18-May-10 4:40 
GeneralRe: Reading integer from an xml file Pin
acont18-May-10 5:23
acont18-May-10 5:23 
AnswerRe: Reading integer from an xml file Pin
PIEBALDconsult18-May-10 4:56
mvePIEBALDconsult18-May-10 4:56 
QuestionPlz, des'nt File Delete ,, [modified] Pin
sonic74718-May-10 0:25
sonic74718-May-10 0:25 
AnswerFile not deleting [modified] Pin
DaveyM6918-May-10 0:32
professionalDaveyM6918-May-10 0:32 
GeneralRe: File not deleting Pin
Johnny J.18-May-10 1:25
professionalJohnny J.18-May-10 1:25 
GeneralRe: File not deleting Pin
DaveyM6918-May-10 2:08
professionalDaveyM6918-May-10 2:08 
AnswerRe: Plz, des'nt File Delete ,, Pin
Luc Pattyn18-May-10 1:10
sitebuilderLuc Pattyn18-May-10 1:10 
AnswerRe: Plz, des'nt File Delete ,, Pin
sonic74718-May-10 1:30
sonic74718-May-10 1:30 
GeneralRe: Plz, des'nt File Delete ,, Pin
Not Active18-May-10 2:41
mentorNot Active18-May-10 2:41 
GeneralRe: Plz, des'nt File Delete ,, Pin
William Winner18-May-10 7:29
William Winner18-May-10 7:29 
AnswerRe: Plz, des'nt File Delete ,, Pin
Seishin#18-May-10 4:39
Seishin#18-May-10 4:39 
QuestionCombobox SelectedValue Problem. Pin
Dotnetkanna17-May-10 23:30
Dotnetkanna17-May-10 23:30 
AnswerRe: Combobox SelectedValue Problem. Pin
Abhinav S18-May-10 0:34
Abhinav S18-May-10 0:34 
AnswerRe: Combobox SelectedValue Problem. Pin
Seishin#18-May-10 4:46
Seishin#18-May-10 4:46 
QuestionHow can save picturebox image using menustrip Pin
Nivas8217-May-10 21:00
Nivas8217-May-10 21:00 
AnswerRe: How can save picturebox image using menustrip Pin
William Winner18-May-10 8:00
William Winner18-May-10 8:00 

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.