Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading all particular nodes with loop Pin
niansah17-May-05 4:23
niansah17-May-05 4:23 
GeneralC#, LDAP, and Active Directory Pin
slvrscremr17-May-05 3:13
slvrscremr17-May-05 3:13 
GeneralRe: C#, LDAP, and Active Directory Pin
Scott Serl17-May-05 21:23
Scott Serl17-May-05 21:23 
GeneralNeed to Read XML File Pin
Jethro6317-May-05 2:37
Jethro6317-May-05 2:37 
GeneralRe: Need to Read XML File Pin
Robert Rohde17-May-05 3:17
Robert Rohde17-May-05 3:17 
GeneralRe: Need to Read XML File Pin
Jethro6317-May-05 3:21
Jethro6317-May-05 3:21 
GeneralRe: Need to Read XML File Pin
Marc Clifton17-May-05 3:22
mvaMarc Clifton17-May-05 3:22 
GeneralRe: Need to Read XML File Pin
niansah17-May-05 3:45
niansah17-May-05 3:45 
Hi,
For sequential read you would use the XmlTextReader to read your file. This is forward only and extremely fast. You would "pull" the information out in a while loop.

For random access, I would use XPathDocument and navigator.

Information on the above is well documented, just google for it.

...INI file approach where you had a key, a subkey, the value and possibly a default value if the key was not found...

With xml, YOU decide how you want to access the node!

<config>
<user-key name="something" value="111" default="0" />
<user-key name="something else" value="XML Rocks" default="Merry Christmas" />
</config>

Alternatively, look into storing your custom tags in web.config/machine.config.
Here is an article: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=90
GeneralCsharp plugin for eclipse Pin
17-May-05 1:33
suss17-May-05 1:33 
GeneralRe: Csharp plugin for eclipse Pin
Marc Clifton17-May-05 3:31
mvaMarc Clifton17-May-05 3:31 
GeneralRe: Csharp plugin for eclipse Pin
Anonymous18-May-05 2:28
Anonymous18-May-05 2:28 
GeneralRe: Csharp plugin for eclipse Pin
Marc Clifton18-May-05 2:40
mvaMarc Clifton18-May-05 2:40 
QuestionHow can I start/stop another Network computer SQL Server? Pin
pubududilena17-May-05 1:27
pubududilena17-May-05 1:27 
GeneralComboboxes in DataGrid question Pin
royg7717-May-05 0:48
royg7717-May-05 0:48 
GeneralRe: Comboboxes in DataGrid question Pin
MoustafaS17-May-05 1:20
MoustafaS17-May-05 1:20 
GeneralRe: Comboboxes in DataGrid question Pin
royg7717-May-05 1:25
royg7717-May-05 1:25 
GeneralHELP! (Im just confused) Pin
Anthony Mushrow17-May-05 0:37
professionalAnthony Mushrow17-May-05 0:37 
GeneralRe: HELP! (Im just confused) Pin
MoustafaS17-May-05 0:43
MoustafaS17-May-05 0:43 
GeneralRe: HELP! (Im just confused) Pin
Marc Clifton17-May-05 3:37
mvaMarc Clifton17-May-05 3:37 
GeneralFlickering problem Pin
sbozcan17-May-05 0:14
sbozcan17-May-05 0:14 
GeneralRe: Flickering problem Pin
_darkwalker17-May-05 21:29
_darkwalker17-May-05 21:29 
GeneralInterpolating properties .. Pin
mrpink16-May-05 23:54
mrpink16-May-05 23:54 
GeneralRe: Interpolating properties .. Pin
Marc Clifton17-May-05 0:20
mvaMarc Clifton17-May-05 0:20 
Generalcreating registry key during setup Pin
Sasuko16-May-05 23:44
Sasuko16-May-05 23:44 
GeneralRe: creating registry key during setup Pin
MoustafaS17-May-05 0:29
MoustafaS17-May-05 0:29 

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.