Categories: C# .NET

Reading XML in C# .NET with XmlTextReader

In the last post, I’ve shown how to write XML file with XmlTextWriter. Now it is time to also read that XML file.

The thing I want to do is to read XML file with XmlTextReader and add the  attribute value of each node to the listbox.

This is the XML that we are going to use.

<?xml version="1.0"?>
	<profile username="johndoe">
		<name>John Doe</name>
	<profile username="pacman">
		<name>Pac Man</name>

Read More “Reading XML in C# .NET with XmlTextReader”

Categories: C# .NET

Writing XML in C# .NET with XmlTextWriter

A few days ago I started writing application that will write and read settings that are saved in XML file.

So, considering that I have never done this in C# (i’m fairly new to it), I’ve read some documentation and came to the conclusion that XmlTextWriter will be the best for the job. Am I wrong? I could use XmlDocument but since I don’t need to do anything more then simply write XML, I see no reason for using it.

So let’s get dirty. :)

Read More “Writing XML in C# .NET with XmlTextWriter”

Categories: General

Alive and Kicking

Yep, that’s right, the website is here. It’s far from complete, a few things still missing but it’s a start.

Soon a few cool articles will be added on the blog, a few products will be released and so on.

But for today, this is it. :)