Click here to Skip to main content
15,902,754 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Xml question ... Pin
led mike8-Sep-06 6:00
led mike8-Sep-06 6:00 
GeneralRe: Xml question ... Pin
devboycpp8-Sep-06 5:52
devboycpp8-Sep-06 5:52 
GeneralRe: Xml question ... Pin
led mike8-Sep-06 6:03
led mike8-Sep-06 6:03 
AnswerRe: Xml question ... Pin
BoneSoft8-Sep-06 5:57
BoneSoft8-Sep-06 5:57 
QuestionHow to include external XSL File in Main XSL File ? Pin
Rizwan Bashir8-Sep-06 2:58
Rizwan Bashir8-Sep-06 2:58 
AnswerRe: How to include external XSL File in Main XSL File ? Pin
Dustin Metzgar8-Sep-06 3:30
Dustin Metzgar8-Sep-06 3:30 
Questionchanging an attribute [modified] Pin
Ista7-Sep-06 17:10
Ista7-Sep-06 17:10 
QuestionXPathNavigator.Select returns only 1 item Pin
kozu7-Sep-06 16:50
kozu7-Sep-06 16:50 
Hi,
I need to parse the following XML file for the nodes that have parent=1
<folders>
<folder>
<id>1</id>
<name>name1</name>
<parent>0</parent>
</folder>
<folder>
<id>2</id>
<name>name2</name>
<parent>1</parent>
</folder>
<folder>
<id>3</id>
<name>name3</name>
<parent>1</parent>
</folder>
</folders>

I tried to do it like this, but nodes has just 1 item instead of 2.

string query = "/folders/folder[parent='1']";
XPathDocument document = new XPathDocument("folders.xml");
XPathNavigator navigator = document.CreateNavigator();
XPathNodeIterator nodes=navigator.Select(query);


Is there a way to do this?
thanx
AnswerRe: XPathNavigator.Select returns only 1 item Pin
George L. Jackson7-Sep-06 18:22
George L. Jackson7-Sep-06 18:22 
GeneralRe: XPathNavigator.Select returns only 1 item Pin
kozu8-Sep-06 6:31
kozu8-Sep-06 6:31 
Questioncopy entire file with xslt Pin
Ista7-Sep-06 11:24
Ista7-Sep-06 11:24 
AnswerRe: copy entire file with xslt Pin
led mike7-Sep-06 11:51
led mike7-Sep-06 11:51 
QuestionNeed tutorial for loading attributes to dropdownlist Pin
oohungoo6-Sep-06 23:47
oohungoo6-Sep-06 23:47 
QuestionWhat version of MSXML can be used in Windows NT Pin
Pradosh Tapan Datta6-Sep-06 21:18
Pradosh Tapan Datta6-Sep-06 21:18 
AnswerRe: What version of MSXML can be used in Windows NT Pin
led mike7-Sep-06 12:00
led mike7-Sep-06 12:00 
QuestionVS - XSD text editor - intelliscensy(autofill) Pin
El'Cachubrey5-Sep-06 23:38
El'Cachubrey5-Sep-06 23:38 
Questionget specific child nodes in xmlnodelist Pin
playout5-Sep-06 21:17
playout5-Sep-06 21:17 
Question.xls to .xml Pin
fmardani4-Sep-06 22:58
fmardani4-Sep-06 22:58 
AnswerRe: .xls to .xml Pin
Bhupi Bhai5-Sep-06 1:43
Bhupi Bhai5-Sep-06 1:43 
AnswerRe: .xls to .xml Pin
sugumar_winner6-Sep-06 18:43
sugumar_winner6-Sep-06 18:43 
Questioncdata for attribute Pin
NikoTanghe31-Aug-06 22:53
NikoTanghe31-Aug-06 22:53 
AnswerRe: cdata for attribute Pin
led mike1-Sep-06 5:14
led mike1-Sep-06 5:14 
Questionneed help with VoiceXML Pin
keroed_edmond31-Aug-06 4:04
keroed_edmond31-Aug-06 4:04 
AnswerRe: need help with VoiceXML Pin
Legolas_Bilbao31-Aug-06 23:35
Legolas_Bilbao31-Aug-06 23:35 
QuestionXml object and weird "?" characters Pin
tobycow631-Aug-06 2:46
tobycow631-Aug-06 2:46 

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.