Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
QuestionI command "AT Command" can recharge the SIM card can be self-abandoned. Pin
Ir-win ChakadCo20-Dec-09 0:44
Ir-win ChakadCo20-Dec-09 0:44 
AnswerRe: I command "AT Command" can recharge the SIM card can be self-abandoned. Pin
Roger Wright20-Dec-09 1:11
professionalRoger Wright20-Dec-09 1:11 
JokeRe: I command "AT Command" can recharge the SIM card can be self-abandoned. Pin
Eddy Vluggen20-Dec-09 1:36
professionalEddy Vluggen20-Dec-09 1:36 
GeneralRe: I command "AT Command" can recharge the SIM card can be self-abandoned. Pin
Richard MacCutchan20-Dec-09 4:35
mveRichard MacCutchan20-Dec-09 4:35 
QuestionWeb Service Pin
ellllllllie19-Dec-09 23:25
ellllllllie19-Dec-09 23:25 
AnswerRe: Web Service Pin
Rob Philpott19-Dec-09 23:58
Rob Philpott19-Dec-09 23:58 
QuestionProblem in Reading XML file.. Pin
<<Tash18>>19-Dec-09 22:15
<<Tash18>>19-Dec-09 22:15 
AnswerRe: Problem in Reading XML file.. Pin
Rob Philpott19-Dec-09 23:26
Rob Philpott19-Dec-09 23:26 
Sure, all looks good, but as you say you can't really access nodes by their ordering, as they may not come in that order or one might be missing.

From a node, you can ask for child nodes with xpath as mentioned.

Something like:

foreach(XmlNode node in nodes)
{
    string a_id = GetChildValue(node, "ID");
    string a_ap = GetChildValue(node, "ApplicationDescription");
    ....
    ....
}

private string GetChildValue(XmlNode parentNode, string nodeName)
{
    XmlNode node = parentNode.SelectSingleNode("/" + nodeName);
    if (node == null) return null;
    return node.InnerText;
}


That might not be quite bang on, but its close. Hope that helps.

Regards,
Rob Philpott.

GeneralRe: Problem in Reading XML file.. Pin
<<Tash18>>20-Dec-09 0:28
<<Tash18>>20-Dec-09 0:28 
GeneralRe: Problem in Reading XML file.. Pin
Rob Philpott20-Dec-09 1:51
Rob Philpott20-Dec-09 1:51 
Questiondatatable Pin
ali- kanju219-Dec-09 22:03
ali- kanju219-Dec-09 22:03 
AnswerRe: datatable Pin
Saksida Bojan19-Dec-09 22:39
Saksida Bojan19-Dec-09 22:39 
GeneralRe: datatable Pin
ali- kanju219-Dec-09 23:08
ali- kanju219-Dec-09 23:08 
GeneralRe: datatable Pin
Saksida Bojan20-Dec-09 18:33
Saksida Bojan20-Dec-09 18:33 
Questiondatatable Pin
ali- kanju219-Dec-09 20:12
ali- kanju219-Dec-09 20:12 
Question[Message Deleted] Pin
theOzLizard19-Dec-09 14:35
theOzLizard19-Dec-09 14:35 
AnswerRe: onclientclick problem Pin
Ravi Bhavnani19-Dec-09 17:04
professionalRavi Bhavnani19-Dec-09 17:04 
QuestionTranslating pixel postion? Pin
Druuler19-Dec-09 12:14
Druuler19-Dec-09 12:14 
AnswerRe: Translating pixel postion? [modified] Pin
o m n i19-Dec-09 14:40
o m n i19-Dec-09 14:40 
GeneralRe: Translating pixel postion? Pin
Druuler19-Dec-09 16:35
Druuler19-Dec-09 16:35 
GeneralRe: Translating pixel postion? Pin
o m n i19-Dec-09 17:09
o m n i19-Dec-09 17:09 
GeneralRe: Translating pixel postion? Pin
Druuler20-Dec-09 8:39
Druuler20-Dec-09 8:39 
Questionconvert wav Pin
sanforjackass19-Dec-09 11:09
sanforjackass19-Dec-09 11:09 
AnswerRe: convert wav Pin
o m n i19-Dec-09 14:58
o m n i19-Dec-09 14:58 
QuestionMATLAB Pin
sanforjackass19-Dec-09 10:24
sanforjackass19-Dec-09 10:24 

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.