Click here to Skip to main content
15,799,491 members
Home / Discussions / C#
   

C#

 
AnswerRe: Func<> Question Pin
Richard Deeming3-May-23 22:47
mveRichard Deeming3-May-23 22:47 
GeneralRe: Func<> Question Pin
Kevin Marois4-May-23 6:57
professionalKevin Marois4-May-23 6:57 
SuggestionRe: Func<> Question Pin
BillWoodruff26-May-23 20:56
professionalBillWoodruff26-May-23 20:56 
QuestionXML validation with Schematron Pin
antann781-May-23 1:56
antann781-May-23 1:56 
AnswerRe: XML validation with Schematron Pin
jschell1-May-23 12:21
jschell1-May-23 12:21 
QuestionHow to "Reach" content of an XML node/tag (and turn it into a new reader) Pin
pr1mem0ver20-Apr-23 4:30
pr1mem0ver20-Apr-23 4:30 
AnswerRe: How to "Reach" content of an XML node/tag (and turn it into a new reader) Pin
Gerry Schmitz22-Apr-23 6:34
mveGerry Schmitz22-Apr-23 6:34 
AnswerRe: How to "Reach" content of an XML node/tag (and turn it into a new reader) Pin
lmoelleb24-Apr-23 6:18
lmoelleb24-Apr-23 6:18 
The XmlReader is pretty low level, and I would not recommend you use it.

Better options:

- Use XDocument[^]. The examples on the page are focusing on creating the document, but use the static Load or Create methods when you already have the file.
- Make a full C# class representing your XML and use the DataContract serializer - then get your data from there using standard C# code.

XmlReader is very good at dealing with XML where you do not want to keep everything in memory - if that is a requirement, then you might have made a mistake somewhere earlier in the project.

That said, the XmlNodeReader[^] is doing what you are asking for.
GeneralRe: How to "Reach" content of an XML node/tag (and turn it into a new reader) Pin
pr1mem0ver7-Jul-23 23:46
pr1mem0ver7-Jul-23 23:46 
Question405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
Gwyll14-Apr-23 5:20
Gwyll14-Apr-23 5:20 
AnswerRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
OriginalGriff14-Apr-23 7:00
mvaOriginalGriff14-Apr-23 7:00 
GeneralRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
Gwyll14-Apr-23 8:53
Gwyll14-Apr-23 8:53 
GeneralRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
jschell14-Apr-23 12:38
jschell14-Apr-23 12:38 
AnswerRe: 405 Error for WebSocket with WSS but not WS (ASP.Net) Pin
Gwyll14-Apr-23 13:43
Gwyll14-Apr-23 13:43 
QuestionHow to get XSI:type in inner class while converting to XML Pin
dineshrastogi14-Apr-23 2:42
dineshrastogi14-Apr-23 2:42 
AnswerRe: How to get XSI:type in inner class while converting to XML Pin
Pete O'Hanlon14-Apr-23 3:05
subeditorPete O'Hanlon14-Apr-23 3:05 
QuestionC# List of Tasks Pin
Kevin Marois6-Apr-23 20:07
professionalKevin Marois6-Apr-23 20:07 
AnswerRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 20:15
mvaOriginalGriff6-Apr-23 20:15 
GeneralRe: C# List of Tasks Pin
Kevin Marois6-Apr-23 20:45
professionalKevin Marois6-Apr-23 20:45 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 21:21
mvaOriginalGriff6-Apr-23 21:21 
GeneralRe: C# List of Tasks Pin
Kevin Marois6-Apr-23 21:22
professionalKevin Marois6-Apr-23 21:22 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 22:50
mvaOriginalGriff6-Apr-23 22:50 
GeneralRe: C# List of Tasks Pin
OriginalGriff6-Apr-23 22:58
mvaOriginalGriff6-Apr-23 22:58 
AnswerRe: C# List of Tasks Pin
lmoelleb7-Apr-23 2:54
lmoelleb7-Apr-23 2:54 
AnswerRe: C# List of Tasks Pin
jschell7-Apr-23 10:20
jschell7-Apr-23 10:20 

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.