Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bizzare request Pin
benjymous4-Oct-06 4:54
benjymous4-Oct-06 4:54 
AnswerRe: Bizzare request Pin
Eric Dahlvang4-Oct-06 5:32
Eric Dahlvang4-Oct-06 5:32 
QuestionCreating Objects by program Pin
Harikrk4-Oct-06 0:33
Harikrk4-Oct-06 0:33 
AnswerRe: Creating Objects by program Pin
Tamimi - Code4-Oct-06 0:50
Tamimi - Code4-Oct-06 0:50 
GeneralRe: Creating Objects by program Pin
Harikrk4-Oct-06 1:20
Harikrk4-Oct-06 1:20 
GeneralRe: Creating Objects by program Pin
LongRange.Shooter4-Oct-06 6:43
LongRange.Shooter4-Oct-06 6:43 
AnswerRe: Creating Objects by program Pin
J4amieC4-Oct-06 1:17
J4amieC4-Oct-06 1:17 
Questionxml and xpath Pin
papy-boom4-Oct-06 0:21
papy-boom4-Oct-06 0:21 
hi everybody,
My question deals with xml and xpath use, i have an xml stream as it represented below:
<RESULTAT>
<node>
<DATE_ANNE>2000</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC120</NOM>
</node>
<node>
<DATE_ANNE>2000</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC121</NOM>
</node>
<node>
<DATE_ANNE>2000</MVT_DATE>
<TYPE>T</TYPE>
<NOM>EPAC122</NOM>
</node>
<node>
<DATE_ANNE>2001</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC123</NOM>
</node>
<node>
<DATE_ANNE>2001</MVT_DATE>
<TYPE>O</TYPE>
<NOM>EPAC124</NOM>
</node>
<node>
<DATE_ANNE>2002</MVT_DATE>
<TYPE>P</TYPE>
<NOM>EPAC125</NOM>
</node>
<node>
<DATE_ANNE>2002</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC126</NOM>
</node>
<node>
<DATE_ANNE>2002</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC127</NOM>
</node>
<RESULTAT>
i want to select all node wish have DATE_ANNE = 2000 and TYPE = I i've read in some articles that is possible using this code
string xPathquery="/RESULTAT/node/DATE_ANNE='2006' AND TYPE='I'";
XmlNodeList nodeList = doc.SelectNodes(xpathQuery);
i want to get a list like that
<RESULTAT>
<node>
<DATE_ANNE>2000</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC120</NOM>
</node>
<node>
<DATE_ANNE>2000</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC121</NOM>
</node>
<node>
<DATE_ANNE>2001</MVT_DATE>
<TYPE>I</TYPE>
<NOM>EPAC123</NOM>
</node>
..............

but it doesn't work can some one explain wether it's possible to obtein such result using Xpath in .NET.
best regards!!
AnswerRe: xml and xpath Pin
ejuanpp4-Oct-06 3:53
ejuanpp4-Oct-06 3:53 
GeneralRe: xml and xpath Pin
papy-boom4-Oct-06 3:56
papy-boom4-Oct-06 3:56 
QuestionRunning SQL Express and a C# program on a pentium 3 computer Pin
WillemM3-Oct-06 22:42
WillemM3-Oct-06 22:42 
AnswerRe: Running SQL Express and a C# program on a pentium 3 computer Pin
LongRange.Shooter4-Oct-06 6:45
LongRange.Shooter4-Oct-06 6:45 
GeneralRe: Running SQL Express and a C# program on a pentium 3 computer Pin
WillemM4-Oct-06 7:52
WillemM4-Oct-06 7:52 
GeneralRe: Running SQL Express and a C# program on a pentium 3 computer Pin
LongRange.Shooter4-Oct-06 14:32
LongRange.Shooter4-Oct-06 14:32 
GeneralRe: Running SQL Express and a C# program on a pentium 3 computer Pin
WillemM4-Oct-06 20:12
WillemM4-Oct-06 20:12 
QuestionNewbie: Should I use an array? And how? Pin
Phillip Hodges3-Oct-06 22:33
Phillip Hodges3-Oct-06 22:33 
AnswerRe: Newbie: Should I use an array? And how? Pin
Stefan Troschuetz3-Oct-06 22:37
Stefan Troschuetz3-Oct-06 22:37 
GeneralRe: Newbie: Should I use an array? And how? Pin
Phillip Hodges3-Oct-06 22:38
Phillip Hodges3-Oct-06 22:38 
AnswerRe: Newbie: Should I use an array? And how? Pin
Kevin McFarlane3-Oct-06 23:42
Kevin McFarlane3-Oct-06 23:42 
AnswerRe: Newbie: Should I use an array? And how? Pin
ejuanpp4-Oct-06 4:00
ejuanpp4-Oct-06 4:00 
AnswerRe: Newbie: Should I use an array? And how? Pin
LongRange.Shooter4-Oct-06 6:55
LongRange.Shooter4-Oct-06 6:55 
Questionzip and unzip in .net 2.0 Pin
DownBySpj3-Oct-06 21:54
DownBySpj3-Oct-06 21:54 
AnswerRe: zip and unzip in .net 2.0 Pin
Chris Buckett3-Oct-06 22:02
Chris Buckett3-Oct-06 22:02 
QuestionC# Compiling Pin
slSoftware3-Oct-06 21:26
slSoftware3-Oct-06 21:26 
AnswerRe: C# Compiling Pin
CWIZO3-Oct-06 22:32
CWIZO3-Oct-06 22:32 

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.