Click here to Skip to main content
15,894,410 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHow to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 0:36
Vishnu Narayan Mishra15-Nov-07 0:36 
AnswerRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 10:33
pmarfleet15-Nov-07 10:33 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 19:16
Vishnu Narayan Mishra15-Nov-07 19:16 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 19:41
pmarfleet15-Nov-07 19:41 
QuestionHow to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 20:19
Vishnu Narayan Mishra14-Nov-07 20:19 
AnswerRe: How to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 22:23
Vishnu Narayan Mishra14-Nov-07 22:23 
Questionhow to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra14-Nov-07 2:03
Vishnu Narayan Mishra14-Nov-07 2:03 
AnswerRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike14-Nov-07 5:02
led mike14-Nov-07 5:02 
Well I have some suggestions for you.

First I recommend, it's what I use, www.w3schools.com as an excellent reference for things like XPath etc.

Second, find yourself a method of testing XPath statements before you try to integrate them into code. I mean you just type a statement and execute it in some environment to see that you obtain the node or node set desired. There might be something you can get for free and it's not that difficult to write a little command line utility or even a Windows Forms application for testing XPath statements.

Lastly, when you want to create a paramaterized XPath statement don't use string concatination, use String.Format(...) with format strings that have placeholders for the parameters. It's far simpler to get the XPath statement syntax correct when you do that. Let's use your statement as an example:

"/LinkInformation/ScreensToSupport/ScreenToSupport/[ScreenUniqueId='"+strScreenId+"']";<br />


The format string would be:

"/LinkInformation/ScreensToSupport/ScreenToSupport/[ScreenUniqueId='{0}']";

then use it in String.Format and pass the parameter to fill in the placeholder.

Now to your problem. You XPath statement syntax is incorrect, there should be no path separator before the expression

ScreenToSupport/[ScreenUniqueId

should be
<br />
ScreenToSupport[ScreenUniqueId



GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra19-Nov-07 20:03
Vishnu Narayan Mishra19-Nov-07 20:03 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike20-Nov-07 5:39
led mike20-Nov-07 5:39 
Questionhow can we go through such kinds of tag in xml like <PopupHTML /> Pin
Vishnu Narayan Mishra13-Nov-07 23:17
Vishnu Narayan Mishra13-Nov-07 23:17 
AnswerRe: how can we go through such kinds of tag in xml like Pin
George L. Jackson14-Nov-07 1:53
George L. Jackson14-Nov-07 1:53 
QuestionHow to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 2:17
Vishnu Narayan Mishra13-Nov-07 2:17 
AnswerRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
led mike13-Nov-07 6:18
led mike13-Nov-07 6:18 
GeneralRe: How to delete a xml node with all attributes and start, end tag of the xml node in c#-- urgent Pin
Vishnu Narayan Mishra13-Nov-07 22:24
Vishnu Narayan Mishra13-Nov-07 22:24 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. Pin
Vishnu Narayan Mishra12-Nov-07 22:22
Vishnu Narayan Mishra12-Nov-07 22:22 
QuestionHow can I go through all child nodes and attributes of child nodes of a parent node.. [modified] Pin
Vishnu Narayan Mishra12-Nov-07 21:14
Vishnu Narayan Mishra12-Nov-07 21:14 
QuestionEdititng the tag of XML Pin
SreejithAchutan8-Nov-07 17:04
SreejithAchutan8-Nov-07 17:04 
AnswerRe: Edititng the tag of XML Pin
led mike9-Nov-07 5:19
led mike9-Nov-07 5:19 
Questionhow to append node with attributes after an node in XML + C# [modified] Pin
Vishnu Narayan Mishra7-Nov-07 20:52
Vishnu Narayan Mishra7-Nov-07 20:52 
AnswerRe: how to append node with attributes after an node in XML + C# Pin
pmarfleet8-Nov-07 9:51
pmarfleet8-Nov-07 9:51 
QuestionSending XML Soap Messages, C# Pin
AssemblySoft5-Nov-07 6:18
AssemblySoft5-Nov-07 6:18 
AnswerDouble post Pin
pmarfleet5-Nov-07 6:54
pmarfleet5-Nov-07 6:54 
QuestionXML problems Pin
kurt194-Nov-07 23:31
kurt194-Nov-07 23:31 
AnswerRe: XML problems Pin
led mike5-Nov-07 7:21
led mike5-Nov-07 7:21 

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.