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

C#

 
GeneralRe: Chr() function in c# Pin
Dave Kreskowiak26-May-04 5:23
mveDave Kreskowiak26-May-04 5:23 
GeneralRe: Chr() function in c# Pin
RB@Emphasys26-May-04 7:39
RB@Emphasys26-May-04 7:39 
GeneralRe: Using UCOMIPersistFile interface in C# Pin
Heath Stewart26-May-04 3:27
protectorHeath Stewart26-May-04 3:27 
GeneralEventLogs... Again Pin
Andy *M*26-May-04 0:12
Andy *M*26-May-04 0:12 
GeneralRe: EventLogs... Again Pin
Dave Kreskowiak26-May-04 2:28
mveDave Kreskowiak26-May-04 2:28 
GeneralRe: EventLogs... Again Pin
Andy *M*26-May-04 4:29
Andy *M*26-May-04 4:29 
GeneralRe: EventLogs... Again Pin
Dave Kreskowiak26-May-04 4:39
mveDave Kreskowiak26-May-04 4:39 
GeneralDelete a node in Xml Pin
Appelz25-May-04 23:43
Appelz25-May-04 23:43 
Hello,

I'm trying to delete a node in my Xml-file like this:

xml.Load(filePath);
string pad = "//exceptions[@company='RLS']";
XmlNode delete = xml.SelectSingleNode(pad);
xml.DocumentElement.RemoveChild(delete);

but then i get a mistake like "The node to be removed is not a child of this node."
What can i do to delete the node?
The xml-file looks like this

<pack version="1.0">
<com>
<main>
<tests>
<test name="programs">independent</test>
</tests>
</main>
<exceptions company="RLS">
<tests>
<extest name="settings">independent</extest>
</tests>
</exceptions>
</com>
</pack>
GeneralRe: Delete a node in Xml Pin
Xiangyang Liu 刘向阳26-May-04 0:02
Xiangyang Liu 刘向阳26-May-04 0:02 
GeneralRe: Delete a node in Xml Pin
Appelz26-May-04 0:13
Appelz26-May-04 0:13 
Generalis it possible to add a checkbox to a report Pin
robmays25-May-04 23:39
robmays25-May-04 23:39 
GeneralRe: is it possible to add a checkbox to a report Pin
Heath Stewart26-May-04 3:29
protectorHeath Stewart26-May-04 3:29 
GeneralTransparent button Pin
thomasa25-May-04 23:25
thomasa25-May-04 23:25 
GeneralRe: Transparent button Pin
Heath Stewart26-May-04 3:36
protectorHeath Stewart26-May-04 3:36 
GeneralRe: Transparent button Pin
thomasa26-May-04 21:26
thomasa26-May-04 21:26 
GeneralRe: Transparent button Pin
Heath Stewart27-May-04 4:32
protectorHeath Stewart27-May-04 4:32 
GeneralDrawing Vertical Text in Reverse Direction Pin
FredSP25-May-04 21:12
FredSP25-May-04 21:12 
GeneralRe: Drawing Vertical Text in Reverse Direction Pin
Heath Stewart26-May-04 4:05
protectorHeath Stewart26-May-04 4:05 
GeneralRe: Drawing Vertical Text in Reverse Direction Pin
Werdna26-May-04 6:34
Werdna26-May-04 6:34 
GeneralMessageBox Pin
thomasa25-May-04 21:03
thomasa25-May-04 21:03 
GeneralRe: MessageBox Pin
Nick Seng25-May-04 21:09
Nick Seng25-May-04 21:09 
GeneralRe: MessageBox Pin
MilesAhead26-May-04 4:13
MilesAhead26-May-04 4:13 
GeneralCompiling code Pin
Wizard_0125-May-04 20:40
Wizard_0125-May-04 20:40 
GeneralRe: Compiling code Pin
Marc Clifton26-May-04 3:34
mvaMarc Clifton26-May-04 3:34 
GeneralCustom Control Pin
Ryan Joseph25-May-04 19:46
Ryan Joseph25-May-04 19:46 

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.