Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory Management Pin
apferreira19-Jul-03 2:55
apferreira19-Jul-03 2:55 
Generalsystray question Pin
KETUINHA17-Jul-03 18:01
KETUINHA17-Jul-03 18:01 
GeneralRe: systray question Pin
Mazdak18-Jul-03 2:19
Mazdak18-Jul-03 2:19 
QuestionHow to Create a new Access database using C#? Pin
Xytme17-Jul-03 17:41
Xytme17-Jul-03 17:41 
AnswerRe: How to Create a new Access database using C#? Pin
Kastro17-Jul-03 18:10
Kastro17-Jul-03 18:10 
AnswerRe: How to Create a new Access database using C#? Pin
Mazdak18-Jul-03 2:23
Mazdak18-Jul-03 2:23 
Generalbackground is not transparent !! Pin
KETUINHA17-Jul-03 17:04
KETUINHA17-Jul-03 17:04 
GeneralSML GHETTO STEEZ Pin
eggie517-Jul-03 14:40
eggie517-Jul-03 14:40 
Here's my ghetto xml (byteFile1.xml)...

<?xml version="1.0"?>
     <Bytes>
          <byte1>
               <one>00</one>
               <two>01</two>
               <three>02</three>
               <four>03</four>
               <five>04</five>
               <six>05</six>
               <seven>06</seven>
               <eight>07</eight>
          </byte1>
          <byte2>
               <one>21</one>
               <two>15</two>
               <three>12</three>
               <four>11</four>
               <five>05</five>
               <six>01</six>
               <seven>08</seven>
               <eight>04</eight>
          </byte2>
          <byte3>
               <one>02</one>
               <two>00</two>
               <three>10</three>
               <four>18</four>
               <five>81</five>
               <six>05</six>
               <seven>06</seven>
               <eight>07</eight>
          </byte3>
     </Bytes> 



now here's the code I process it with...

int nOutNum;

XmlDocument xmlDoc=new XmlDataDocument();
XmlNode bit;
string NUM;
xmlDoc.Load("byteFile1.xml");
bit=xmlDoc.SelectSingleNode("//Bytes/byte1");
NUM=bit.InnerText;

this.labelCell.Text=NUM;


nOutNum=short.Parse(NUM, NumberStyles.AllowHexSpecifier);
NTPort.Outport(nAddress, (short)nOutNum);


Now, what I want to do is go though each node i.e. (one, two, three.... eight) one at a time, and on each one do the above code.

but make ....

bit=xmlDoc.SelectSingleNode("//Bytes/byte1");


unique to the specific node were on in the loop...

like if were on the one in bold...

<byte1>
     <one>00</one>
     <big><two>01</two></big>
     <three>02</three>
     <four>03</four>
     <five>04</five>
     <six>05</six>
     <seven>06</seven>
     <eight>07</eight>
</byte1>


then change it to...

bit=xmlDoc.SelectSingleNode("//Bytes/byte1/two");


so, it sounds reall confusing... I think all I need is a for loop or somthing... but the changing of the SelectSingleNode thing ruins me...

PLEASE HELP@!@!#@$KBlush | :O





/\ |_ E X E GG
GeneralRe: SML GHETTO STEEZ Pin
eggie517-Jul-03 19:05
eggie517-Jul-03 19:05 
GeneralRe: SML GHETTO STEEZ Pin
eggie518-Jul-03 10:23
eggie518-Jul-03 10:23 
GeneralRe: SML GHETTO STEEZ Pin
eggie518-Jul-03 10:23
eggie518-Jul-03 10:23 
GeneralMD5 in C# Pin
Zibar17-Jul-03 11:01
sussZibar17-Jul-03 11:01 
GeneralRe: MD5 in C# Pin
Frank Rem17-Jul-03 11:30
Frank Rem17-Jul-03 11:30 
GeneralRe: MD5 in C# Pin
Zibar17-Jul-03 20:13
sussZibar17-Jul-03 20:13 
GeneralProgress Bar Pin
eggie517-Jul-03 9:36
eggie517-Jul-03 9:36 
Generalvisual studio designer Pin
mdolby17-Jul-03 9:11
mdolby17-Jul-03 9:11 
GeneralRe: visual studio designer Pin
John Fisher17-Jul-03 9:25
John Fisher17-Jul-03 9:25 
GeneralRe: visual studio designer Pin
Kastro17-Jul-03 11:07
Kastro17-Jul-03 11:07 
Questionlocating a node in a treeview control? Pin
misterbear17-Jul-03 8:54
misterbear17-Jul-03 8:54 
AnswerRe: locating a node in a treeview control? Pin
Nick Parker17-Jul-03 9:13
protectorNick Parker17-Jul-03 9:13 
QuestionCan you have a space in Table Name &amp; query it from C# Pin
Khang Nguyen17-Jul-03 7:32
Khang Nguyen17-Jul-03 7:32 
AnswerRe: Can you have a space in Table Name &amp; query it from C# Pin
Ray Cassick17-Jul-03 7:53
Ray Cassick17-Jul-03 7:53 
GeneralRe: Can you have a space in Table Name &amp; query it from C# Pin
Khang Nguyen17-Jul-03 8:53
Khang Nguyen17-Jul-03 8:53 
GeneralRe: Can you have a space in Table Name &amp; query it from C# Pin
Uwe Keim17-Jul-03 22:47
sitebuilderUwe Keim17-Jul-03 22:47 
GeneralWhere do i find an Object Int type Pin
Anonymous17-Jul-03 6:34
Anonymous17-Jul-03 6:34 

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.