Currently I just have a file like this that I manually parse into a Dictionary:
str1=Hello
str2=World
This is no longer practical for several reasons:
- I need lists of strings that I can access by index
- I want to split the key value pairs into groups
I consider using XML now because:
- Good for key value pairs and groups
- I could use classes and serialize them, eliminating spelling errors
But (assuming I use serialized classes):
- I would have to create a lot of new classes to map the document structure
- Dictionaries need to be cared for specially because the can't usually be serialized
Do you recommend this approach? Should I use the XmlDocument class instead? Is there some other format that has free libraries for .net?
I want to use this for localizing an application.