tags:

views:

165

answers:

4

Following my question regarding a .NET YAML Library... as there doesn't seem to be great support for YAML in .NET, are there and good open source really simple .NET XML libraries. I just want something where I can pass it a section name and a key and it gives me the value as well as being able to give me a list of all the current sections and keys.

Also, preferably something with a license that allows it to be used commercially.

+1  A: 

Can you use the 3.5 framework? Linq to XML is fantastic, and simple.

swilliams
A: 

@swilliams

Can you use the 3.5 framework? Linq to XML is fantastic, and simple.

Sadly, no...the user base for my application is all XP SP2/3 and wouldn't have 3.5 installed by default. And for some reason I'm not able to require them to install the new framework...but I will definitely keep that in mind for future projects.

Adam Haile
+2  A: 

isn't the system.xml namespace suficient?

once i had to use it for the simple scenarios that you described and thought that it was a simple and efficient solutions.

take a look at this examples

Reading Node Trees with XmlNodeReader and the XML Document Object Model (DOM) Reference

vitorsilva
A: 

Is XSLT / XPath out of the question? If so, have you considered JSON.Net?

David Robbins