Click here to Skip to main content
15,914,444 members
Home / Discussions / C#
   

C#

 
QuestionKeeping track of connected users on a server? Pin
Lord Kixdemp11-Dec-06 11:31
Lord Kixdemp11-Dec-06 11:31 
AnswerRe: Keeping track of connected users on a server? Pin
Ravi Bhavnani11-Dec-06 12:07
professionalRavi Bhavnani11-Dec-06 12:07 
GeneralRe: Keeping track of connected users on a server? Pin
Lord Kixdemp11-Dec-06 12:14
Lord Kixdemp11-Dec-06 12:14 
AnswerRe: Keeping track of connected users on a server? Pin
Ravi Bhavnani11-Dec-06 12:20
professionalRavi Bhavnani11-Dec-06 12:20 
GeneralRe: Keeping track of connected users on a server? Pin
Lord Kixdemp11-Dec-06 12:53
Lord Kixdemp11-Dec-06 12:53 
GeneralRe: Keeping track of connected users on a server? Pin
Ravi Bhavnani12-Dec-06 2:08
professionalRavi Bhavnani12-Dec-06 2:08 
GeneralRe: Keeping track of connected users on a server? Pin
Lord Kixdemp12-Dec-06 13:16
Lord Kixdemp12-Dec-06 13:16 
QuestionReading an XML file Pin
yonidebest11-Dec-06 11:14
yonidebest11-Dec-06 11:14 
I looked all over the web for an easy way to read an XML file, with no success. Most places I found used the XmlTextReader.Read() method, which I don't find easy to use if I dont wanna go thru the whole file.

This is what I am looking for. Say I have the following XML file:

<city name="New York">
<population>10,000,000</population>
<growth>1.2</growth>
</city>
<city name="Miami">
<population>7,000,000</population>
<growth>2.4</growth>
</city>

and I would like to access Miami's population element (and get the 7,000,000 string) something like this (I have invent the names of the methods - the final question follows these exampls):

string PopulationOfMiami = xmlfile["Miami"].population;
or perhaps:
string PopulationOfMiami = xmlfile["Miami"].population.value;
or perhaps:
string PopulationOfMiami = xmlfile["Miami"].ElementSon("population").value;
or perhaps:
string PopulationOfMiami = xmlfile.findNameAttribute("Miami").population.value;

I want access to my XML file in a similar form in one of the above fashioned-way. Does anyone know of real methods and class that work like above? I hope I explained myself OK D'Oh! | :doh: .

Thanks,
Yoni
AnswerRe: Reading an XML file Pin
gnadeem11-Dec-06 11:18
gnadeem11-Dec-06 11:18 
AnswerRe: Reading an XML file Pin
Kent Sharkey11-Dec-06 12:14
staffKent Sharkey11-Dec-06 12:14 
GeneralRe: Reading an XML file Pin
yonidebest12-Dec-06 2:55
yonidebest12-Dec-06 2:55 
GeneralRe: Reading an XML file Pin
Kent Sharkey12-Dec-06 8:07
staffKent Sharkey12-Dec-06 8:07 
GeneralRe: Reading an XML file Pin
yonidebest12-Dec-06 8:31
yonidebest12-Dec-06 8:31 
GeneralRe: Reading an XML file [modified] Pin
Kent Sharkey12-Dec-06 8:37
staffKent Sharkey12-Dec-06 8:37 
GeneralRe: Reading an XML file [modified] Pin
yonidebest12-Dec-06 14:48
yonidebest12-Dec-06 14:48 
GeneralRe: Reading an XML file Pin
Kent Sharkey13-Dec-06 7:08
staffKent Sharkey13-Dec-06 7:08 
GeneralRe: Reading an XML file Pin
yonidebest13-Dec-06 10:01
yonidebest13-Dec-06 10:01 
AnswerRe: Reading an XML file [modified] Pin
meeram39511-Dec-06 22:17
meeram39511-Dec-06 22:17 
GeneralRe: Reading an XML file Pin
yonidebest12-Dec-06 2:59
yonidebest12-Dec-06 2:59 
QuestionBrowser preview Pin
netJP12L11-Dec-06 10:56
netJP12L11-Dec-06 10:56 
QuestionClickonce - how to Build deliverables once and Deployed universally Pin
tiongbox10011-Dec-06 10:31
tiongbox10011-Dec-06 10:31 
Questioncopy a byte array to a UInt16 array Pin
NYTSX11-Dec-06 9:58
NYTSX11-Dec-06 9:58 
AnswerRe: copy a byte array to a UInt16 array Pin
Guffa11-Dec-06 14:13
Guffa11-Dec-06 14:13 
QuestionCopy File Pin
TAREQ F ABUZUHRI11-Dec-06 9:01
TAREQ F ABUZUHRI11-Dec-06 9:01 
AnswerRe: Copy File Pin
Eric Dahlvang11-Dec-06 10:08
Eric Dahlvang11-Dec-06 10: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.