Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
QuestionHELP: how to select specific node in XML using c# Pin
drifters31-Jan-07 20:13
drifters31-Jan-07 20:13 
AnswerRe: HELP: how to select specific node in XML using c# Pin
Christian Graus31-Jan-07 20:27
protectorChristian Graus31-Jan-07 20:27 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters31-Jan-07 20:32
drifters31-Jan-07 20:32 
GeneralRe: HELP: how to select specific node in XML using c# [modified] Pin
bobsugar22231-Jan-07 22:19
bobsugar22231-Jan-07 22:19 
GeneralRe: HELP: how to select specific node in XML using c# [modified] Pin
drifters31-Jan-07 22:32
drifters31-Jan-07 22:32 
GeneralRe: HELP: how to select specific node in XML using c# Pin
Stefan Troschuetz31-Jan-07 22:33
Stefan Troschuetz31-Jan-07 22:33 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters1-Feb-07 14:51
drifters1-Feb-07 14:51 
GeneralRe: HELP: how to select specific node in XML using c# Pin
drifters1-Feb-07 16:20
drifters1-Feb-07 16:20 
part of my code is below:
XmlDocument myXmlDocument = new XmlDocument();
myXmlDocument.Load("sample.xml");
XmlNamespaceManager nsmanager = new XmlNamespaceManager(myXmlDocument.NameTable);
nsmanager.AddNamespace("ns", "http://www.w3.org/2005/Atom");

XPathNavigator nav = myXmlDocument.CreateNavigator();
XPathExpression expr;
expr = nav.Compile("feed/entry[title='Summary']");
expr.SetContext(nsmanager);
XPathNodeIterator iterator=nav.Select(expr);
XPathNavigator nav2 = iterator.Current.Clone();
listBox1.Items.Add((nav2.Value));
but the output i get contains not only nodes with title=Summary but all the nodes of feed in the XML posted earlier. Can anyone advise how to select <link href> to grab the address from the attribute. thanks.
GeneralRe: HELP: how to select specific node in XML using c# Pin
Stefan Troschuetz1-Feb-07 20:56
Stefan Troschuetz1-Feb-07 20:56 
QuestionCall Java Code Pin
Expert Coming31-Jan-07 20:03
Expert Coming31-Jan-07 20:03 
AnswerRe: Call Java Code Pin
blackjack215031-Jan-07 20:15
blackjack215031-Jan-07 20:15 
Questioncombobox selectedindexchanged event Pin
KrunalC31-Jan-07 19:46
KrunalC31-Jan-07 19:46 
QuestionInterprocess communication using impersonation Pin
ParimalaRadjaram31-Jan-07 19:42
ParimalaRadjaram31-Jan-07 19:42 
QuestionHow to make an User Control in VC# that can be used in VC6? Pin
Andy Rama31-Jan-07 18:42
Andy Rama31-Jan-07 18:42 
AnswerRe: How to make an User Control in VC# that can be used in VC6? Pin
Christian Graus31-Jan-07 20:28
protectorChristian Graus31-Jan-07 20:28 
QuestionHow to get control value from one project to other project Pin
indiaone31-Jan-07 18:40
indiaone31-Jan-07 18:40 
AnswerRe: How to get control value from one project to other project Pin
Christian Graus31-Jan-07 20:29
protectorChristian Graus31-Jan-07 20:29 
QuestionException?? Pin
Rahithi31-Jan-07 18:16
Rahithi31-Jan-07 18:16 
AnswerRe: Exception?? Pin
jdkulkarni31-Jan-07 18:24
jdkulkarni31-Jan-07 18:24 
GeneralRe: Exception?? Pin
Rahithi31-Jan-07 18:29
Rahithi31-Jan-07 18:29 
GeneralRe: Exception?? Pin
jdkulkarni31-Jan-07 18:35
jdkulkarni31-Jan-07 18:35 
GeneralRe: Exception?? Pin
Rahithi31-Jan-07 18:39
Rahithi31-Jan-07 18:39 
AnswerRe: Exception?? Pin
ednrgc1-Feb-07 3:41
ednrgc1-Feb-07 3:41 
QuestionDisplay Insert button status on StatusStrip Pin
god4k31-Jan-07 18:00
god4k31-Jan-07 18:00 
QuestionRunning an application within a browser Pin
snarcher31-Jan-07 17:41
snarcher31-Jan-07 17:41 

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.