File format that is simple like XML but smaller
I'm creating a map editor that saves maps for something. Currently, I've been saving it in XML (because it is built into the .net framework). The problem is, XML is very bloated and there could be thousands of elements per file.
Is there any other sim开发者_Go百科ple to use formats (that I don't have to create a complicated parser for) to can store just some simple values?
Take a look at JSON http://en.wikipedia.org/wiki/JSON or protobuf http://code.google.com/p/protobuf/. For both formats .NET libraries exists.
精彩评论