Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke18-May-13 5:44
Dinesh Salunke18-May-13 5:44 
GeneralRe: c# Thumbnail Viewer Pin
Dave Kreskowiak18-May-13 7:46
mveDave Kreskowiak18-May-13 7:46 
GeneralRe: c# Thumbnail Viewer Pin
BillWoodruff19-May-13 2:05
professionalBillWoodruff19-May-13 2:05 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke19-May-13 4:16
Dinesh Salunke19-May-13 4:16 
QuestionFlashing form Pin
PozzaVecia17-May-13 12:28
PozzaVecia17-May-13 12:28 
AnswerRe: Flashing form Pin
Dave Kreskowiak17-May-13 17:34
mveDave Kreskowiak17-May-13 17:34 
AnswerRe: Flashing form Pin
BillWoodruff17-May-13 20:17
professionalBillWoodruff17-May-13 20:17 
GeneralRe: Flashing form Pin
PozzaVecia17-May-13 22:01
PozzaVecia17-May-13 22:01 
QuestionTimestamp Value in SQLServer Pin
abhi_here17-May-13 8:13
abhi_here17-May-13 8:13 
AnswerRe: Timestamp Value in SQLServer Pin
PIEBALDconsult17-May-13 8:43
mvePIEBALDconsult17-May-13 8:43 
AnswerRe: Timestamp Value in SQLServer Pin
abhi_here29-May-13 4:34
abhi_here29-May-13 4:34 
AnswerRe: Timestamp Value in SQLServer Pin
jschell17-May-13 10:32
jschell17-May-13 10:32 
GeneralRe: Timestamp Value in SQLServer Pin
PIEBALDconsult17-May-13 11:04
mvePIEBALDconsult17-May-13 11:04 
QuestionDifferent behaviour from button in MDI parent and button in child form Pin
FRotondo17-May-13 4:09
FRotondo17-May-13 4:09 
AnswerRe: Different behaviour from button in MDI parent and button in child form Pin
Simon_Whale17-May-13 10:21
Simon_Whale17-May-13 10:21 
GeneralRe: Different behaviour from button in MDI parent and button in child form Pin
FRotondo17-May-13 22:12
FRotondo17-May-13 22:12 
QuestionExtract XML values using XpathNavigator Pin
baranils17-May-13 1:03
baranils17-May-13 1:03 
Hello

Is there a way to extract some values from an XML node using the XmlPathNavigator ?

I need to extrat information from a XML file. I was first trying to use an XmlTextReader but the pure sequential access seeme a bit tedious to handle

So I was trying to use the XpathDocument
I use a XPathNavigator to browse each node of my document (see code below)

But for each product I just need to extract a few information
- Brand
- Model
- ID
(there are a lot of other unneeded information)

Is it possible to do that with the XpathNavigator ?
Or do I need another approach ?
Obviously I can write my own parser but I can't believe that there is no simple way with standard classes ?

Thanks for any help !

C#
XPathDocument xmldoc = new XPathDocument(p);
XPathNavigator nav = xmldoc.CreateNavigator();
int j = 0;
foreach (XPathNavigator product in nav.Select("liste/mobile"))
{
  j++;
}

AnswerRe: Extract XML values using XpathNavigator Pin
PIEBALDconsult17-May-13 4:39
mvePIEBALDconsult17-May-13 4:39 
GeneralRe: Extract XML values using XpathNavigator Pin
baranils17-May-13 4:56
baranils17-May-13 4:56 
AnswerRe: Extract XML values using XpathNavigator Pin
Abhinav S17-May-13 19:08
Abhinav S17-May-13 19:08 
AnswerRe: Extract XML values using XpathNavigator Pin
Alan Balkany20-May-13 11:32
Alan Balkany20-May-13 11:32 
QuestionA question on WCF Pin
Dewald17-May-13 0:56
Dewald17-May-13 0:56 
AnswerRe: A question on WCF Pin
Richard MacCutchan17-May-13 1:06
mveRichard MacCutchan17-May-13 1:06 
GeneralRe: A question on WCF Pin
Dewald17-May-13 2:35
Dewald17-May-13 2:35 
QuestionHow to Conect two computers in different networks Pin
AntonioJesus17-May-13 0:35
professionalAntonioJesus17-May-13 0:35 

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.