Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
QuestionInstalling Visual Web Developer 2010 Express Pin
Bram van Kampen19-Jul-11 15:51
Bram van Kampen19-Jul-11 15:51 
AnswerRe: Installing Visual Web Developer 2010 Express Pin
RobCroll20-Jul-11 1:28
RobCroll20-Jul-11 1:28 
QuestionDrawing Map & find countries on Map by C# Application Pin
Mahtab77719-Jul-11 7:00
Mahtab77719-Jul-11 7:00 
AnswerRe: Drawing Map & find countries on Map by C# Application Pin
Eddy Vluggen19-Jul-11 9:43
professionalEddy Vluggen19-Jul-11 9:43 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
Mahtab77719-Jul-11 17:05
Mahtab77719-Jul-11 17:05 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
Pete O'Hanlon19-Jul-11 21:25
mvePete O'Hanlon19-Jul-11 21:25 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
V.20-Jul-11 2:01
professionalV.20-Jul-11 2:01 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
Mahtab77720-Jul-11 6:52
Mahtab77720-Jul-11 6:52 
AnswerRe: Drawing Map & find countries on Map by C# Application Pin
Eddy Vluggen20-Jul-11 7:22
professionalEddy Vluggen20-Jul-11 7:22 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
V.20-Jul-11 7:31
professionalV.20-Jul-11 7:31 
Questionscrollbars... *sigh* Pin
l a u r e n19-Jul-11 4:14
l a u r e n19-Jul-11 4:14 
AnswerRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 6:23
professionalEddy Vluggen19-Jul-11 6:23 
GeneralRe: scrollbars... *sigh* Pin
l a u r e n19-Jul-11 7:42
l a u r e n19-Jul-11 7:42 
AnswerRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 7:58
professionalEddy Vluggen19-Jul-11 7:58 
GeneralRe: scrollbars... *sigh* Pin
l a u r e n19-Jul-11 8:45
l a u r e n19-Jul-11 8:45 
GeneralRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 9:08
professionalEddy Vluggen19-Jul-11 9:08 
GeneralRe: scrollbars... *sigh* Pin
l a u r e n19-Jul-11 9:40
l a u r e n19-Jul-11 9:40 
GeneralRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 10:31
professionalEddy Vluggen19-Jul-11 10:31 
QuestionLINQ: Show parent table value in child table Gridview Pin
Raza us Samad19-Jul-11 4:01
Raza us Samad19-Jul-11 4:01 
Questionspecify area for Drag'n'Drop Pin
lukeer19-Jul-11 1:37
lukeer19-Jul-11 1:37 
AnswerRe: specify area for Drag'n'Drop Pin
Dave Kreskowiak19-Jul-11 3:59
mveDave Kreskowiak19-Jul-11 3:59 
AnswerRe: specify area for Drag'n'Drop Pin
Alan N19-Jul-11 4:30
Alan N19-Jul-11 4:30 
Questionget parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 0:34
NarVish19-Jul-11 0:34 
AnswerRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 1:38
Mirko198019-Jul-11 1:38 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 2:35
NarVish19-Jul-11 2:35 
string parent = book.SelectSingleNode("../Token").Value;

This returns the inner data of xml
value of parent: "PRODprodBUSINESSBusiness NewsCOSCompany NewsANAAnalyst RatingsANAMOVESAnalyst Ratings, Estimates and Target Price ChangesANACHANGEAnalyst Rating ChangesANACUTAnalyst DowngradesANACUTEVTAnalyst Ratings Cut Events, AnnouncementsIPIntellectual PropertyCOPYRIGHTCopyrightsDRGPATENTDrug Patents"


string level = book.SelectSingleNode("count(ancestor::Entity)").Value;

This line thrown exception, "Expression must evaluate to a node-set."
I hope I'll succeed in getting level by using ancestor, by giving correct syntax.
Please let me know how to get the parent value. Thank you

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.