Click here to Skip to main content
15,891,863 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Generalamazon upload Need Help Pin
Sumit Kapoor19-May-04 19:52
Sumit Kapoor19-May-04 19:52 
QuestionXML the way? Pin
RichGuk18-May-04 11:16
RichGuk18-May-04 11:16 
AnswerRe: XML the way? Pin
Christian Graus18-May-04 11:45
protectorChristian Graus18-May-04 11:45 
AnswerRe: XML the way? Pin
eggie527-May-04 13:44
eggie527-May-04 13:44 
QuestionGet child nodes of certain element?? Pin
Jack78917-May-04 19:27
Jack78917-May-04 19:27 
AnswerRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira17-May-04 19:52
Wilbur J. Pereira17-May-04 19:52 
GeneralRe: Get child nodes of certain element?? Pin
Jack78917-May-04 20:19
Jack78917-May-04 20:19 
GeneralRe: Get child nodes of certain element?? Pin
Philip Fitzsimons18-May-04 3:05
Philip Fitzsimons18-May-04 3:05 
1. you will only get one result as you used SelectSingleNode - which is you main problem.
2. you can use // instead of descendant
3. you case use @ instead of attribute::
4. i would do it this way (i have not checked if it works)

=======================================================<br />
XmlNodeList nodeList;<br />
nodeList=root.SelectNodes("//folder[@ID = '34']/decendant::*") ;<br />
foreach (XmlNode folderNode in nodeList) {<br />
  string nodeValue =  folderNode.Attributes["ID"].Value.ToString();<br />
}<br />
=======================================================





"When the only tool you have is a hammer, a sore thumb you will have."

GeneralRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira18-May-04 19:40
Wilbur J. Pereira18-May-04 19:40 
GeneralRe: Get child nodes of certain element?? Pin
Jack78918-May-04 21:41
Jack78918-May-04 21:41 
GeneralRe: Get child nodes of certain element?? Pin
Ghazi Malik21-May-04 6:04
Ghazi Malik21-May-04 6:04 
QuestionHow to build a DataBase of data types (int, char, struct, &#8230;)? Pin
Michigan185417-May-04 4:25
Michigan185417-May-04 4:25 
GeneralDynamic Webservice Client Pin
BernardYardley17-May-04 2:29
BernardYardley17-May-04 2:29 
GeneralRe: Dynamic Webservice Client Pin
BernardYardley17-May-04 22:29
BernardYardley17-May-04 22:29 
QuestionInterested in article? Pin
Steve S16-May-04 23:09
Steve S16-May-04 23:09 
GeneralA simple question about MSXML Pin
zengkun12-May-04 18:01
zengkun12-May-04 18:01 
GeneralRe: A simple question about MSXML Pin
Member 64272914-May-04 2:36
Member 64272914-May-04 2:36 
GeneralRe: A simple question about MSXML Pin
zengkun16-May-04 20:16
zengkun16-May-04 20:16 
GeneralIMG tag, xml xsl newbie question Pin
dmalcom12-May-04 11:26
dmalcom12-May-04 11:26 
GeneralRe: IMG tag, xml xsl newbie question Pin
Member 64272914-May-04 2:37
Member 64272914-May-04 2:37 
QuestionHow to document the structure of a XML-document? Pin
anderslundsgard12-May-04 2:18
anderslundsgard12-May-04 2:18 
AnswerRe: How to document the structure of a XML-document? Pin
Anonymous13-May-04 1:07
Anonymous13-May-04 1:07 
Generaltransforming xml without a xslt file Pin
stendelis11-May-04 10:22
stendelis11-May-04 10:22 
GeneralRe: transforming xml without a xslt file Pin
Tomas Petricek13-May-04 15:27
Tomas Petricek13-May-04 15:27 
GeneralRe: transforming xml without a xslt file Pin
Paul Wolfensberger15-May-04 3:01
Paul Wolfensberger15-May-04 3:01 

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.