Click here to Skip to main content
15,894,188 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple Colored ProgressBar Pin
Dario Solera11-Feb-06 23:42
Dario Solera11-Feb-06 23:42 
GeneralRe: Multiple Colored ProgressBar Pin
suchiate11-Feb-06 23:46
suchiate11-Feb-06 23:46 
GeneralRe: Multiple Colored ProgressBar Pin
User 665811-Feb-06 23:59
User 665811-Feb-06 23:59 
GeneralRe: Multiple Colored ProgressBar Pin
suchiate12-Feb-06 0:11
suchiate12-Feb-06 0:11 
QuestionDataList Control in Windows Forms Pin
Adel Khayata11-Feb-06 20:47
Adel Khayata11-Feb-06 20:47 
QuestionDNS .Resolve & .NET 2.0 Headache?? Pin
gman4411-Feb-06 18:24
gman4411-Feb-06 18:24 
Questionhow to know where next Location is ? Pin
CiNN11-Feb-06 14:47
CiNN11-Feb-06 14:47 
QuestionC# XPath expression help Pin
eggie511-Feb-06 12:33
eggie511-Feb-06 12:33 
I'm making a C# app that does alot of xpath queries, and I was having trouble with one. Here is the xml I am working with:

<?xml version="1.0" encoding="utf-8"?>
<reviewers>
<reviewer>
<name>Matti Latva-aho</name>
<email>asf@asf</email>
<country>Finland</country>
<affiliation>University of Oulu</affiliation>
<username>matla</username>
<password>19harava</password>
<interests>
<interest>Track II</interest>
<interest>Track IV</interest>
<interest>Track III</interest>
</interests>
<papers>
<id>1</id>

</papers>
</reviewer>
</reviewers>

My question is how can I get - using XmlNode.SelectNodes() - get all the "reviewer" nodes with "id" node that is equal to a number x. ???

Using the below expression I can get the papers node with the id that I specify, but I want the parent of papers, reviewer.

XmlNodeList reviewerNodes=docReviewers.SelectNodes("//reviewers/reviewer/papers[id='"+p.id+"']");



/\ |_ E X E GG

-- modified at 18:33 Saturday 11th February, 2006
AnswerRe: C# XPath expression help Pin
George L. Jackson11-Feb-06 15:52
George L. Jackson11-Feb-06 15:52 
GeneralRe: C# XPath expression help Pin
eggie511-Feb-06 16:10
eggie511-Feb-06 16:10 
GeneralRe: C# XPath expression help Pin
eggie511-Feb-06 17:46
eggie511-Feb-06 17:46 
Questiona problem with SQL stored procedure , LIKE and '%' Pin
shabonaa11-Feb-06 11:06
shabonaa11-Feb-06 11:06 
AnswerRe: a problem with SQL stored procedure , LIKE and '%' Pin
Colin Angus Mackay11-Feb-06 13:37
Colin Angus Mackay11-Feb-06 13:37 
QuestionDNS Resolve problem in .NET 2.0??? Pin
gman4411-Feb-06 9:36
gman4411-Feb-06 9:36 
AnswerRe: DNS Resolve problem in .NET 2.0??? Pin
spirit_of_pak12-Feb-06 17:36
spirit_of_pak12-Feb-06 17:36 
GeneralRe: DNS Resolve problem in .NET 2.0??? Pin
gman4413-Feb-06 3:16
gman4413-Feb-06 3:16 
QuestionConditional Property Setters (friends in C#) Pin
Marc Clifton11-Feb-06 8:00
mvaMarc Clifton11-Feb-06 8:00 
AnswerRe: Conditional Property Setters (friends in C#) Pin
Kevin McFarlane11-Feb-06 8:45
Kevin McFarlane11-Feb-06 8:45 
AnswerRe: Conditional Property Setters (friends in C#) Pin
StealthyMark14-Feb-06 6:12
StealthyMark14-Feb-06 6:12 
QuestionHow can i disable temporarily warnings/error from the code? Pin
e-laj11-Feb-06 7:41
e-laj11-Feb-06 7:41 
AnswerRe: How can i disable temporarily warnings/error from the code? Pin
Kevin McFarlane11-Feb-06 8:43
Kevin McFarlane11-Feb-06 8:43 
GeneralRe: How can i disable temporarily warnings/error from the code? Pin
e-laj11-Feb-06 12:02
e-laj11-Feb-06 12:02 
GeneralRe: How can i disable temporarily warnings/error from the code? Pin
Kevin McFarlane11-Feb-06 12:20
Kevin McFarlane11-Feb-06 12:20 
AnswerRe: How can i disable temporarily warnings/error from the code? Pin
Wayne Phipps11-Feb-06 8:43
Wayne Phipps11-Feb-06 8:43 
AnswerRe: How can i disable temporarily warnings/error from the code? Pin
Dave Kreskowiak11-Feb-06 8:51
mveDave Kreskowiak11-Feb-06 8: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.