Click here to Skip to main content
15,902,908 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to enable an UI control in System.Threading.Timer Pin
jll03304-Feb-05 13:17
jll03304-Feb-05 13:17 
GeneralPost Build Error Pin
gantww4-Feb-05 9:16
gantww4-Feb-05 9:16 
GeneralRe: Post Build Error Pin
Heath Stewart4-Feb-05 13:14
protectorHeath Stewart4-Feb-05 13:14 
GeneralRe: Post Build Error Pin
gantww5-Feb-05 17:56
gantww5-Feb-05 17:56 
GeneralRe: Post Build Error Pin
Heath Stewart6-Feb-05 5:44
protectorHeath Stewart6-Feb-05 5:44 
GeneralRe: Post Build Error Pin
gantww8-Feb-05 7:21
gantww8-Feb-05 7:21 
GeneralRe: Post Build Error Pin
Heath Stewart8-Feb-05 14:03
protectorHeath Stewart8-Feb-05 14:03 
GeneralXML in c# multi Elements Pin
Dwayner794-Feb-05 8:20
Dwayner794-Feb-05 8:20 
I use an XML file layout the steps to be completed by the program. Here is the general idea of the XML file:

<?xml version="1.0"?>
<DOC Name="TEST">
<STEP NAME="My Step 1" ID="1" TYPE="Type1">
<BLOCK NAME="TestBlock_1_1" NUMBER="68"></BLOCK>
<BLOCK NAME="TestBlock_1_2" NUMBER="35"></BLOCK>
</STEP>
<STEP NAME="My step 2" ID="2" TYPE="Type2">
<BLOCK NAME="TestBlock_2_1" NUMBER="42"></BLOCK>
<BLOCK NAME="TestBlock_2_2" NUMBER="26"></BLOCK>
</STEP>
</DOC>


I am reading the file fine, and can parse through and work with the STEP Elements. What I cannot get working is accessing the BLOCK elements within only a particular STEP


if(reader.Name=="STEP") //
{
reader.MoveToAttribute("NAME");
if(reader.Value == "My Step 1")
{
// How do I move to the Elements within this step??
// I need to know the BLOCK values

}

}


Thanks in advance for the help.
GeneralRe: XML in c# multi Elements Pin
Heath Stewart4-Feb-05 8:56
protectorHeath Stewart4-Feb-05 8:56 
GeneralRe: XML in c# multi Elements Pin
Dwayner794-Feb-05 9:53
Dwayner794-Feb-05 9:53 
GeneralRe: XML in c# multi Elements Pin
Heath Stewart4-Feb-05 12:57
protectorHeath Stewart4-Feb-05 12:57 
QuestionListbox problem solved! But WHY?? Pin
chrismarek4-Feb-05 8:18
chrismarek4-Feb-05 8:18 
Generaladding attachments to an email Pin
Aviv Halperin4-Feb-05 6:05
Aviv Halperin4-Feb-05 6:05 
GeneralRe: adding attachments to an email Pin
Heath Stewart4-Feb-05 6:31
protectorHeath Stewart4-Feb-05 6:31 
QuestionHow to have MenuItems not show arrow when it has submenu Pin
VPMahank4-Feb-05 5:28
VPMahank4-Feb-05 5:28 
GeneralSocket and Multithreading Pin
sameerhanda4-Feb-05 5:05
sameerhanda4-Feb-05 5:05 
GeneralRe: Socket and Multithreading Pin
Heath Stewart4-Feb-05 6:24
protectorHeath Stewart4-Feb-05 6:24 
GeneralFilestream issue Pin
Esmo20004-Feb-05 4:43
Esmo20004-Feb-05 4:43 
GeneralRe: Filestream issue Pin
Esmo20004-Feb-05 4:46
Esmo20004-Feb-05 4:46 
GeneralRe: Filestream issue Pin
Anonymous4-Feb-05 4:57
Anonymous4-Feb-05 4:57 
GeneralRe: Filestream issue Pin
Heath Stewart4-Feb-05 6:20
protectorHeath Stewart4-Feb-05 6:20 
GeneralBeep() without using Windows.Forms Pin
Tim Gilbert4-Feb-05 4:32
Tim Gilbert4-Feb-05 4:32 
GeneralRe: Beep() without using Windows.Forms Pin
Anonymous4-Feb-05 4:39
Anonymous4-Feb-05 4:39 
GeneralRe: Beep() without using Windows.Forms Pin
Tim Gilbert4-Feb-05 4:48
Tim Gilbert4-Feb-05 4:48 
GeneralRe: Beep() without using Windows.Forms Pin
Dave Kreskowiak4-Feb-05 6:33
mveDave Kreskowiak4-Feb-05 6:33 

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.