Click here to Skip to main content
15,887,386 members
Home / Discussions / C#
   

C#

 
AnswerRe: I want to find a job to learning at outside!!! Pin
dojohansen27-May-12 6:46
dojohansen27-May-12 6:46 
AnswerRe: I want to find a job to learning at outside!!! Pin
AmitGajjar27-May-12 19:52
professionalAmitGajjar27-May-12 19:52 
QuestionHelp!!! Search Algorithms Pin
chipchip_boy25-May-12 21:19
chipchip_boy25-May-12 21:19 
AnswerRe: Help!!! Search Algorithms - Repost Pin
Richard MacCutchan25-May-12 23:05
mveRichard MacCutchan25-May-12 23:05 
AnswerRe: Help!!! Search Algorithms Pin
AmitGajjar27-May-12 19:54
professionalAmitGajjar27-May-12 19:54 
GeneralRe: Help!!! Search Algorithms Pin
chipchip_boy29-May-12 2:25
chipchip_boy29-May-12 2:25 
AnswerRe: Help!!! Search Algorithms Pin
chipchip_boy31-May-12 21:15
chipchip_boy31-May-12 21:15 
Questionnested HTML table and xpath: matching level one child node (without hardcoding entire xpath using single forward slashes) Pin
devvvy25-May-12 17:50
devvvy25-May-12 17:50 
hi, this is a nested HTML table. Using Xpath .//table//tr we can retrieve all table rows. That's what double forward slashes does for you (matches not only level one beaneath current node but also any sub level deeper in the hierarchy).

What I want to achieve is to be able to retrieve first-level table rows only but WITHOUT hardcoding path using single forward slash:
.//table/tr
As we can, possibly, have <tbody> tag sitting beneath <table> tag but about <tr>, in which case above xpath will miss!
(But using double forward slashes on tr will capture second level tr's which I want to exclude)

Many thanks


<html>
<head>Sample page</head>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>Name</td>
<td>John Doe</td>
<tr>
<tr>
<td>Tel</td>
<td>416-987-1234</td>
<tr>
</table>
</td>
<td>
<table>
<tr>
<td>EmpID</td>
<td>12345</td>
<tr>
<tr>
<td>Salary</td>
<td>75000</td>
<tr>
</table>
</td>
</tr>

</table>
</body>
</html>

dev

-- modified 26-May-12 22:44pm.
AnswerRe: nested HTML table and xpath: matching level one child node (without hardcoding entire xpath using single forward slashes) Pin
PIEBALDconsult1-Jun-12 12:18
mvePIEBALDconsult1-Jun-12 12:18 
QuestionWpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
ChristoforosKor25-May-12 17:30
ChristoforosKor25-May-12 17:30 
AnswerRe: Wpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
Pete O'Hanlon25-May-12 21:56
mvePete O'Hanlon25-May-12 21:56 
GeneralRe: Wpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
ChristoforosKor26-May-12 4:26
ChristoforosKor26-May-12 4:26 
GeneralRe: Wpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
AmitGajjar27-May-12 19:56
professionalAmitGajjar27-May-12 19:56 
GeneralRe: Wpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
ChristoforosKor28-May-12 21:10
ChristoforosKor28-May-12 21:10 
GeneralRe: Wpf c# dynamicaly added canvas margin or top - right properties are always zero Pin
Pete O'Hanlon28-May-12 1:28
mvePete O'Hanlon28-May-12 1:28 
QuestionHELP!!!!! Pin
Member 903064525-May-12 12:44
Member 903064525-May-12 12:44 
SuggestionRe: HELP!!!!! Pin
AspDotNetDev25-May-12 13:15
protectorAspDotNetDev25-May-12 13:15 
GeneralRe: HELP!!!!! Pin
AmitGajjar27-May-12 22:03
professionalAmitGajjar27-May-12 22:03 
AnswerRe: HELP!!!!! Pin
Richard Andrew x6425-May-12 13:18
professionalRichard Andrew x6425-May-12 13:18 
AnswerRe: HELP!!!!! Pin
jschell26-May-12 7:18
jschell26-May-12 7:18 
QuestionSend email Pin
sina rahimzadeh25-May-12 8:20
sina rahimzadeh25-May-12 8:20 
AnswerRe: Send email Pin
PIEBALDconsult25-May-12 8:46
mvePIEBALDconsult25-May-12 8:46 
AnswerRe: Send email Pin
AmitGajjar27-May-12 20:52
professionalAmitGajjar27-May-12 20:52 
QuestionAlternative to Application.StartupPath Pin
MichCl25-May-12 4:26
MichCl25-May-12 4:26 
AnswerRe: Alternative to Application.StartupPath Pin
Eddy Vluggen25-May-12 4:57
professionalEddy Vluggen25-May-12 4:57 

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.