Click here to Skip to main content
15,902,939 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: How to remove node Pin
mathuros_paiboon1-Jun-05 16:27
mathuros_paiboon1-Jun-05 16:27 
GeneralRe: How to remove node Pin
Christian Graus1-Jun-05 16:42
protectorChristian Graus1-Jun-05 16:42 
GeneralRe: How to remove node Pin
mathuros_paiboon1-Jun-05 17:02
mathuros_paiboon1-Jun-05 17:02 
GeneralRe: How to remove node Pin
Christian Graus1-Jun-05 17:07
protectorChristian Graus1-Jun-05 17:07 
GeneralRe: How to remove node Pin
mathuros_paiboon1-Jun-05 17:44
mathuros_paiboon1-Jun-05 17:44 
GeneralRe: How to remove node Pin
Christian Graus1-Jun-05 17:52
protectorChristian Graus1-Jun-05 17:52 
GeneralRe: How to remove node Pin
mathuros_paiboon1-Jun-05 18:32
mathuros_paiboon1-Jun-05 18:32 
AnswerRe: How to remove node Pin
niansah3-Jun-05 6:41
niansah3-Jun-05 6:41 
Hi - I was just looking at your x-path - -

audit_list/control_type/control_group[@group = '" + lst_group.SelectedItem.Text.ToString() + "']/control_sub_group[@sub_group = '" + lst_subgroup.SelectedItem.Text.ToString() + "']/control_activity/activity


1) I notice that: you have "activity" as child of "control-activity" while your xml is the other way around: "control-activity" is the child of "activity".

2) if this is corrected - then to remove the activity node:

Something like this:

//first get all the nodes that have control-activity = to user input
dim contActNodes, contActNode, actNode
contActNodes=objdomdocument.selectNodes("//control-activity[.='user-input']")

for each contActNode in contActNodes
//parent node of control-activity is activity
actNode = contActNode.ParentNode
//to remove activity, you need to get to the parent of activity
actNode.PerentNode.RemoveChild(actNode)
next








GeneralSImple Problem with XML Pin
CSharpDavid31-May-05 4:47
CSharpDavid31-May-05 4:47 
GeneralRe: SImple Problem with XML Pin
DavidNohejl31-May-05 7:08
DavidNohejl31-May-05 7:08 
GeneralRe: Simple Problem with XML Pin
CSharpDavid31-May-05 7:56
CSharpDavid31-May-05 7:56 
GeneralRe: SImple Problem with XML Pin
Christian Graus31-May-05 12:07
protectorChristian Graus31-May-05 12:07 
GeneralRe: SImple Problem with XML Pin
DavidNohejl31-May-05 12:20
DavidNohejl31-May-05 12:20 
GeneralRe: SImple Problem with XML Pin
Christian Graus31-May-05 12:22
protectorChristian Graus31-May-05 12:22 
GeneralRe: SImple Problem with XML Pin
niansah3-Jun-05 21:37
niansah3-Jun-05 21:37 
Generalworml list style capturing Pin
ramissues30-May-05 19:21
ramissues30-May-05 19:21 
GeneralDOM Component Pin
eshban28427-May-05 23:14
eshban28427-May-05 23:14 
GeneralRe: DOM Component Pin
Christian Graus31-May-05 12:08
protectorChristian Graus31-May-05 12:08 
GeneralRe: DOM Component Pin
eshban2845-Jun-05 23:45
eshban2845-Jun-05 23:45 
GeneralRe: DOM Component Pin
Wilbur J. Pereira6-Jun-05 0:26
Wilbur J. Pereira6-Jun-05 0:26 
GeneralCorrect XPATH Pin
ksanju100026-May-05 4:27
ksanju100026-May-05 4:27 
Generaladd control to xslt by asp.net with vb Pin
mathuros_paiboon25-May-05 18:26
mathuros_paiboon25-May-05 18:26 
GeneralRe: add control to xslt by asp.net with vb Pin
Christian Graus25-May-05 18:33
protectorChristian Graus25-May-05 18:33 
GeneralRe: add control to xslt by asp.net with vb Pin
mathuros_paiboon25-May-05 19:28
mathuros_paiboon25-May-05 19:28 
GeneralRe: add control to xslt by asp.net with vb Pin
Christian Graus25-May-05 19:36
protectorChristian Graus25-May-05 19:36 

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.