Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create a floating toolbox? Pin
Huong30-Aug-01 2:06
Huong30-Aug-01 2:06 
QuestionHOW DO I DO IT ???? Pin
The_Server30-Aug-01 1:55
The_Server30-Aug-01 1:55 
AnswerRe: HOW DO I DO IT ???? Pin
Malcolm McMahon30-Aug-01 2:07
Malcolm McMahon30-Aug-01 2:07 
AnswerRe: HOW DO I DO IT ???? Pin
Michael Martin30-Aug-01 2:10
professionalMichael Martin30-Aug-01 2:10 
GeneralMSFlexgrid(rowselection) Pin
30-Aug-01 1:26
suss30-Aug-01 1:26 
GeneralRe: MSFlexgrid(rowselection) Pin
ORi x30-Aug-01 1:42
ORi x30-Aug-01 1:42 
Generalproblem in formview Pin
30-Aug-01 1:20
suss30-Aug-01 1:20 
GeneralXML insertBefore Pin
Jimmy Ehrnström30-Aug-01 0:43
Jimmy Ehrnström30-Aug-01 0:43 
Sorry if anyone feels I'm posting in the wrong forum, but this question did not really fit in in any of the others.

My problem is that I can't get the insertBefore method to work when adding new elements/nodes to my xml document.

This is my xml document:

<?xml version="1.0" encoding="ISO-8859-1"?>
<names>
  <name>Flanders, Ned</name>
  <name>Gumble, Barney</name>
  <name>Skinner, Seymour</name>
</names>


Now I would like to do a insert with a new name "Simpson, Homer" so that it is placed before "Skinner, Seymour".

According to the MSDN specification the insertBefore method takes two arguments: newChild and refChild. But what confuses me is that refChild is supposed to be a variant, and not just a node pointer. I've tried different approaches but I've only managed to insert the new name at the end of the list.

Does anyone have some code samples using insertBefore in VC++? I would be very grateful. I've been looking for examples everywhere but found none that helps me.

Thanks!
GeneralRe: XML insertBefore Pin
Alwin7530-Aug-01 3:34
Alwin7530-Aug-01 3:34 
GeneralRe: XML insertBefore Pin
Jimmy Ehrnström30-Aug-01 3:47
Jimmy Ehrnström30-Aug-01 3:47 
GeneralDEBUG !!! Pin
Hadi Rezaee30-Aug-01 0:31
Hadi Rezaee30-Aug-01 0:31 
GeneralRe: DEBUG !!! Pin
Christian Graus30-Aug-01 1:29
protectorChristian Graus30-Aug-01 1:29 
GeneralCHTMLView And Toolbars Pin
AJ12330-Aug-01 0:16
AJ12330-Aug-01 0:16 
GeneralRe: CHTMLView And Toolbars Pin
Tomasz Sowinski30-Aug-01 2:25
Tomasz Sowinski30-Aug-01 2:25 
Generalreading variable value in watch debug window Pin
Bartek29-Aug-01 23:27
Bartek29-Aug-01 23:27 
GeneralRe: reading variable value in watch debug window Pin
Tomasz Sowinski30-Aug-01 2:03
Tomasz Sowinski30-Aug-01 2:03 
GeneralRe: reading variable value in watch debug window Pin
Bartek30-Aug-01 2:23
Bartek30-Aug-01 2:23 
GeneralRe: reading variable value in watch debug window Pin
Tomasz Sowinski30-Aug-01 2:34
Tomasz Sowinski30-Aug-01 2:34 
GeneralRe: reading variable value in watch debug window Pin
Bartek30-Aug-01 2:43
Bartek30-Aug-01 2:43 
QuestionWhat is "shell" (in Windows)? Pin
Maer72729-Aug-01 23:26
Maer72729-Aug-01 23:26 
AnswerRe: What is Pin
Tomasz Sowinski30-Aug-01 1:44
Tomasz Sowinski30-Aug-01 1:44 
GeneralRe: What is Pin
Maer72730-Aug-01 3:26
Maer72730-Aug-01 3:26 
GeneralRe: What is Pin
Tomasz Sowinski30-Aug-01 3:37
Tomasz Sowinski30-Aug-01 3:37 
GeneralRe: What is Pin
Maer72730-Aug-01 16:22
Maer72730-Aug-01 16:22 
GeneralRe: Chenge Edit Box color Pin
30-Aug-01 1:31
suss30-Aug-01 1:31 

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.