Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C based XML parser

Tags:

c

xml

embedded

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.

like image 293
some_id Avatar asked Dec 29 '25 03:12

some_id


2 Answers

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

like image 77
TomM Avatar answered Dec 30 '25 15:12

TomM


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.

like image 35
PPC-Coder Avatar answered Dec 30 '25 17:12

PPC-Coder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!