开发者

C based XML parser

开发者_C百科

What are the recommended XML parsers for parsing a TMX file(XML based tilemap) in C?

What are the pros and cons of each, as I would like to have an efficient one because it will be running on an embedded system.


We used libxml on an embedded product a while back. It may be right for you.


On a high-level I think you should be looking at an event based parser rather than a DOM based one. DOM based parsers will take up a lot of memory building the XML tree.

Here's a from a similiar question. The top suggestion from that case looks to be one of the earliest xml parsers: Expat.


I have written sxmlc as a lightweight, potentially embeddable XML parser in C. See my answer on a related question (also linked by @PPC-Coder).

You can use it as DOM or SAX (to save memory), to parse either files or memory buffers.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜