Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a good tiny XML parser for an embedded C project? [closed]

Tags:

I'm after a very tiny XML parser for an embedded project. It needs to compile down to 10-15k, doesn't need to validate, and needs to be simple and portable.

like image 227
Joe Avatar asked Sep 17 '10 22:09

Joe


People also ask

What XML parser should I use in C++?

XmlLite provides a powerful XML parser for your native C++ applications.

What is XML parser in C?

The Oracle XML parser for C reads an XML document and uses DOM or SAX APIs to provide programmatic access to its content and structure. You can use the parser in validating or nonvalidating mode. This chapter assumes that you are familiar with the following technologies: Document Object Model (DOM).


1 Answers

I was able to tweak the compilation flags of the following XML parser libraries for C, and cut down more than 50% of their size on my Ubuntu machine. Mini-XML is the only one close to what you requested:

  • Mini-XML (36K)
  • Expat (124K)
  • RXP (184K)

There's a good discussion here:

C XML library for Embedded Systems

like image 97
karlphillip Avatar answered Oct 18 '22 11:10

karlphillip