开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜