Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Martin#6-Jan-10 21:29
Martin#6-Jan-10 21:29 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
dojohansen7-Jan-10 1:42
dojohansen7-Jan-10 1:42 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Martin#7-Jan-10 2:40
Martin#7-Jan-10 2:40 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Gideon Engelberth7-Jan-10 14:54
Gideon Engelberth7-Jan-10 14:54 
Questionget char without enter (console) Pin
sadas232341s5-Jan-10 22:24
sadas232341s5-Jan-10 22:24 
AnswerRe: get char without enter (console) Pin
Hristo-Bojilov5-Jan-10 22:37
Hristo-Bojilov5-Jan-10 22:37 
QuestionC# and Resource File Pin
jojoba20105-Jan-10 22:07
jojoba20105-Jan-10 22:07 
AnswerRe: C# and Resource File Pin
SeMartens5-Jan-10 22:38
SeMartens5-Jan-10 22:38 
Hi,

the selectSingleNode-method expects a string containing a xpath-expression. See here:

<a href="http://msdn.microsoft.com/en-us/library/h0hw012b%28VS.80%29.aspx">http://msdn.microsoft.com/en-us/library/h0hw012b%28VS.80%29.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/h0hw012b%28VS.80%29.aspx" target="_blank" title="New Window">^</a>]

So the second line you posted is a correct xpath-expression.

So with this xpath-expression:

<code>
/mynode/comment()
</code>

you select all comments within the node mynode. To access the first comment use:

<code>
/mynode/comment()[1]
</code>


This should do the trick.

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

QuestionRe: C# and Resource File Pin
jojoba20105-Jan-10 23:05
jojoba20105-Jan-10 23:05 
AnswerRe: C# and Resource File Pin
SeMartens5-Jan-10 23:21
SeMartens5-Jan-10 23:21 
GeneralRe: C# and Resource File Pin
jojoba20106-Jan-10 0:01
jojoba20106-Jan-10 0:01 
AnswerRe: C# and Resource File Pin
carlecomm6-Jan-10 18:16
carlecomm6-Jan-10 18:16 
QuestionDraw a line avoiding objects Pin
Zaegra5-Jan-10 21:45
Zaegra5-Jan-10 21:45 
GeneralRe: Draw a line avoiding objects Pin
Skippums6-Jan-10 7:58
Skippums6-Jan-10 7:58 
Questiondatatable filter Pin
abcurl5-Jan-10 21:38
abcurl5-Jan-10 21:38 
AnswerRe: datatable filter Pin
Greg Chelstowski5-Jan-10 23:26
Greg Chelstowski5-Jan-10 23:26 
GeneralRe: datatable filter Pin
abcurl5-Jan-10 23:38
abcurl5-Jan-10 23:38 
GeneralRe: datatable filter Pin
Greg Chelstowski5-Jan-10 23:55
Greg Chelstowski5-Jan-10 23:55 
GeneralRe: datatable filter Pin
Kaushal Arora6-Jan-10 20:33
Kaushal Arora6-Jan-10 20:33 
Questionproblem in insert picture to sql Pin
SajjadZare5-Jan-10 21:05
SajjadZare5-Jan-10 21:05 
AnswerRe: problem in insert picture to sql Pin
SeMartens5-Jan-10 21:20
SeMartens5-Jan-10 21:20 
GeneralRe: problem in insert picture to sql Pin
SajjadZare5-Jan-10 22:13
SajjadZare5-Jan-10 22:13 
GeneralRe: problem in insert picture to sql Pin
SeMartens5-Jan-10 22:19
SeMartens5-Jan-10 22:19 
GeneralRe: problem in insert picture to sql Pin
SajjadZare5-Jan-10 23:45
SajjadZare5-Jan-10 23:45 
GeneralRe: problem in insert picture to sql Pin
SeMartens5-Jan-10 23:51
SeMartens5-Jan-10 23:51 

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.