Click here to Skip to main content
15,915,703 members
Home / Discussions / C#
   

C#

 
GeneralHorizontal scroll not working with OwnerDraw (List box) Pin
pushpi19-May-04 0:35
pushpi19-May-04 0:35 
GeneralRe: Horizontal scroll not working with OwnerDraw (List box) Pin
Aryadip19-May-04 0:46
Aryadip19-May-04 0:46 
GeneralRe: Horizontal scroll not working with OwnerDraw (List box) Pin
pushpi19-May-04 1:12
pushpi19-May-04 1:12 
GeneralRe: Horizontal scroll not working with OwnerDraw (List box) Pin
Aryadip19-May-04 2:18
Aryadip19-May-04 2:18 
QuestionHow to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
sachinkalse18-May-04 23:13
sachinkalse18-May-04 23:13 
AnswerRe: How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
Aryadip19-May-04 0:19
Aryadip19-May-04 0:19 
AnswerRe: How to check Maximize button click event of a Form or how to check whether present size of form is maximum available size. Pin
Heath Stewart19-May-04 4:20
protectorHeath Stewart19-May-04 4:20 
Generalretrieving the value of XML parent problem Pin
dhananjayav18-May-04 23:09
dhananjayav18-May-04 23:09 
static void Main(string[] args)
{
XPathNavigator nav;
XPathNodeIterator NodeIterator;

System.String line = "<a> " +
"<b>" +
"<c>100</c>" +
"<d>20</d>" +
"</b>" +
"</a>";

System.Xml.XmlTextReader textReader=new System.Xml.XmlTextReader(new System.IO.StringReader(line));
nav=new System.Xml.XPath.XPathDocument(textReader).CreateNavigator();

NodeIterator = nav.Select("a/b");
while(NodeIterator.MoveNext())
{
System.Console.WriteLine("Value: " + NodeIterator.Current.Value);
}
}

This code prints value of the node 'a/b' as '10020'. Actually the value should have been empty. Can any one explain the correct way of retrieving the value of the parent node.

regards,
Dhananjay


DHANANJAYA.V E-mail: dhananjayav@yahoo.co.in
GeneralRe: retrieving the value of XML parent problem Pin
Heath Stewart19-May-04 4:18
protectorHeath Stewart19-May-04 4:18 
GeneralDisplaying data from database into a checkbox list Pin
M3L18-May-04 22:47
M3L18-May-04 22:47 
GeneralRe: Displaying data from database into a checkbox list Pin
Heath Stewart19-May-04 4:13
protectorHeath Stewart19-May-04 4:13 
GeneralNetwork listener Pin
mhmoud rawas18-May-04 22:26
mhmoud rawas18-May-04 22:26 
QuestionDisposing Collection of IDisposable? Pin
Dr Herbie18-May-04 22:26
Dr Herbie18-May-04 22:26 
AnswerRe: Disposing Collection of IDisposable? Pin
Daniel Turini18-May-04 22:43
Daniel Turini18-May-04 22:43 
GeneralDesign Time Property Window Pin
acidcrush18-May-04 22:19
acidcrush18-May-04 22:19 
GeneralRe: Design Time Property Window Pin
Heath Stewart19-May-04 4:08
protectorHeath Stewart19-May-04 4:08 
Generalproblem with using VNC hooking Pin
fu018-May-04 22:03
fu018-May-04 22:03 
GeneralRe: problem with using VNC hooking Pin
Dave Kreskowiak19-May-04 3:24
mveDave Kreskowiak19-May-04 3:24 
GeneralSockets question Pin
Vladimir Georgiev18-May-04 20:47
Vladimir Georgiev18-May-04 20:47 
GeneralRe: Sockets question Pin
Roman Rodov18-May-04 21:07
Roman Rodov18-May-04 21:07 
GeneralRe: Sockets question Pin
Vladimir Georgiev19-May-04 2:44
Vladimir Georgiev19-May-04 2:44 
GeneralRe: Sockets question Pin
Heath Stewart19-May-04 4:02
protectorHeath Stewart19-May-04 4:02 
Generalconnecting user controls in c sharp Pin
samithas18-May-04 19:33
samithas18-May-04 19:33 
GeneralRe: connecting user controls in c sharp Pin
etfintnick19-May-04 2:03
etfintnick19-May-04 2:03 
GeneralRe: connecting user controls in c sharp Pin
Heath Stewart19-May-04 3:55
protectorHeath Stewart19-May-04 3:55 

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.