Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: Factory Pattern Question With Generics Pin
Daniel Turini20-Nov-05 4:51
Daniel Turini20-Nov-05 4:51 
GeneralRe: Factory Pattern Question With Generics Pin
nlecren20-Nov-05 14:27
nlecren20-Nov-05 14:27 
GeneralRe: Factory Pattern Question With Generics Pin
S. Senthil Kumar20-Nov-05 19:27
S. Senthil Kumar20-Nov-05 19:27 
QuestionHow to playback file wave by tapi Pin
sharapova20-Nov-05 3:13
sharapova20-Nov-05 3:13 
AnswerRe: How to playback file wave by tapi Pin
Ray Cassick20-Nov-05 8:25
Ray Cassick20-Nov-05 8:25 
QuestionRe: How to playback file wave by tapi Pin
sharapova22-Nov-05 4:26
sharapova22-Nov-05 4:26 
QuestionHow do i get a list of Currently running tasks? Pin
Anthony Mushrow20-Nov-05 3:08
professionalAnthony Mushrow20-Nov-05 3:08 
QuestionXmlTextReader - Enumerating Nodes Pin
matthias s.20-Nov-05 3:06
matthias s.20-Nov-05 3:06 
Hi there!

I'm using the XmlTextReader to parse an XML file. The structure of the file is as follows:
+++
<?xml version="1.0" encoding="utf-8" ?>
<slideshow title="My Slideshow">
<image url="imgurl_1" copyright="copy_1" contact="contact_1">
<en-US>
<title>title_1</title>
<description>desc_1</description>
</en-US>
<de-DE>
<title>titel_1</title>
<description>beschreibung_1</description>
</de-DE>
</image>
</slideshow>
+++
There might be any number of image and language (e.g. fr-FR) nodes in the file.
What I'm trying to do is to find a certain language (e.g. 'de-DE') node. If the node can't be found, I'd like to find a different one (fallback language). But can this be done using the XmlTextReader? I can't seem to figure out how to simply check a node for its title and move on if there is no match. Or do I have to use an entirely different approach?

Thanks in advance and a happy sunday!

/matthias

<br><div style="{width:100%; color:navy; background-color:white;border-top:navy 1pt solid;}"><font size="1">I love deadlines. I like the whooshing sound they make as they fly by. <br>[Douglas Adams]
AnswerRe: XmlTextReader - Enumerating Nodes Pin
Rob Philpott20-Nov-05 10:00
Rob Philpott20-Nov-05 10:00 
GeneralRe: XmlTextReader - Enumerating Nodes Pin
matthias s.20-Nov-05 21:39
matthias s.20-Nov-05 21:39 
QuestionBackGroundImage of MDIForm in C#.Net Pin
Harshalbhakta20-Nov-05 2:13
Harshalbhakta20-Nov-05 2:13 
AnswerRe: BackGroundImage of MDIForm in C#.Net Pin
newpant20-Nov-05 4:15
newpant20-Nov-05 4:15 
GeneralRe: BackGroundImage of MDIForm in C#.Net Pin
Harshalbhakta21-Nov-05 14:28
Harshalbhakta21-Nov-05 14:28 
GeneralRe: BackGroundImage of MDIForm in C#.Net Pin
newpant22-Nov-05 1:31
newpant22-Nov-05 1:31 
Questiondisplay chronometer connected to parrallel port Pin
el_aristo20-Nov-05 2:11
el_aristo20-Nov-05 2:11 
Questionhow to use button to open the new form Pin
activesync20-Nov-05 2:05
activesync20-Nov-05 2:05 
AnswerRe: how to use button to open the new form Pin
Jeff Bramwell20-Nov-05 2:36
Jeff Bramwell20-Nov-05 2:36 
Questionparallel port display chronometer Pin
el_aristo20-Nov-05 1:48
el_aristo20-Nov-05 1:48 
QuestionPopulating datagrid from csv stream Pin
rana7420-Nov-05 0:08
rana7420-Nov-05 0:08 
AnswerRe: Populating datagrid from csv stream Pin
Curtis Schlak.20-Nov-05 15:29
Curtis Schlak.20-Nov-05 15:29 
Questiontreeview Pin
F.Hashemi19-Nov-05 23:55
F.Hashemi19-Nov-05 23:55 
AnswerRe: treeview Pin
Jeff Bramwell20-Nov-05 2:39
Jeff Bramwell20-Nov-05 2:39 
AnswerRe: treeview Pin
Curtis Schlak.20-Nov-05 6:35
Curtis Schlak.20-Nov-05 6:35 
QuestionDataGrid &amp; DataRelation Pin
RoyRose7819-Nov-05 20:10
RoyRose7819-Nov-05 20:10 
Questionstrongly typed collections over web services Pin
(Steven Hicks)n+119-Nov-05 18:37
(Steven Hicks)n+119-Nov-05 18:37 

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.