Click here to Skip to main content
16,021,209 members
Home / Discussions / C#
   

C#

 
GeneralRichEdit Cpture Pin
Anonymous25-Jun-05 22:47
Anonymous25-Jun-05 22:47 
Questionhow do i get a node position in an xml file Pin
alexcuban25-Jun-05 20:13
sussalexcuban25-Jun-05 20:13 
AnswerRe: how do i get a node position in an xml file Pin
alexcuban25-Jun-05 20:16
sussalexcuban25-Jun-05 20:16 
GeneralRe: how do i get a node position in an xml file Pin
mav.northwind25-Jun-05 20:36
mav.northwind25-Jun-05 20:36 
Generalok tahanks well this is the xml Pin
alexdg0426-Jun-05 7:14
alexdg0426-Jun-05 7:14 
GeneralI use code like this... Pin
je_gonzalez26-Jun-05 11:30
je_gonzalez26-Jun-05 11:30 
Generalthanks je_gonzales Pin
alexdg0426-Jun-05 15:03
alexdg0426-Jun-05 15:03 
GeneralRe: thanks je_gonzales Pin
je_gonzalez26-Jun-05 18:03
je_gonzalez26-Jun-05 18:03 
using System.Xml;

XmlDocument c_Doc = new XmlDocument();
c_Doc.Load(...) or LoadXml(...);
XmlNodeList c_List =

c_Doc.DocumentElement.SelectNodes("//*[nombre='???']");
... or ...
c_Doc.DocumentElement.SelectNodes("//item[nombre='???']");

foreach (XmlNode c_Node in c_List)
{
... Do the DumpIndex with c_Node and whatever else ...
}

I am writing this away from my computer, so I cannot check it. Use the first SelectNodes methods to include all nodes, the second if you want to include only the item nodes. Of ccource the ??? needs to be replaced with the name that you are searching for.

Anyway, you should be able to get the idea on how to use XPath (If you need to learn more, check the w3schools.com site)
GeneralGet Updated Screen Areas Pin
raed25-Jun-05 19:42
raed25-Jun-05 19:42 
GeneralRe: Get Updated Screen Areas Pin
leppie25-Jun-05 23:10
leppie25-Jun-05 23:10 
GeneralRe: Get Updated Screen Areas Pin
raed26-Jun-05 1:15
raed26-Jun-05 1:15 
GeneralRe: Get Updated Screen Areas Pin
leppie26-Jun-05 8:28
leppie26-Jun-05 8:28 
GeneralDraw a Label text on the per-pixel form Pin
Sasuko25-Jun-05 13:56
Sasuko25-Jun-05 13:56 
GeneralRe: Draw a Label text on the per-pixel form Pin
leppie25-Jun-05 23:06
leppie25-Jun-05 23:06 
QuestionHow can i tracert in C# Pin
Anonymous25-Jun-05 9:51
Anonymous25-Jun-05 9:51 
AnswerRe: How can i tracert in C# Pin
mav.northwind25-Jun-05 20:40
mav.northwind25-Jun-05 20:40 
AnswerRe: How can i tracert in C# Pin
Sebastian Schneider26-Jun-05 5:48
Sebastian Schneider26-Jun-05 5:48 
GeneralPrinting A Form Pin
74Camaro25-Jun-05 6:07
74Camaro25-Jun-05 6:07 
GeneralRe: Printing A Form Pin
wout de zeeuw25-Jun-05 6:47
wout de zeeuw25-Jun-05 6:47 
GeneralRe: Printing A Form Pin
mav.northwind25-Jun-05 20:48
mav.northwind25-Jun-05 20:48 
GeneralRe: Printing A Form Pin
74Camaro26-Jun-05 8:56
74Camaro26-Jun-05 8:56 
Generaladvanced problem Pin
snouto25-Jun-05 5:47
snouto25-Jun-05 5:47 
GeneralRe: advanced problem Pin
Dave Kreskowiak26-Jun-05 9:06
mveDave Kreskowiak26-Jun-05 9:06 
GeneralRe: advanced problem Pin
snouto26-Jun-05 9:14
snouto26-Jun-05 9:14 
GeneralRe: advanced problem Pin
DavidNohejl26-Jun-05 10:02
DavidNohejl26-Jun-05 10:02 

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.