Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C: How to parse XML in android?

I'm working to create a library for my app in C. I want to parse a XML file in my code. So, how can i do it in C ?

I know its java implementation but how can i parse a XML in my C code ?

What are the libraries that can be used for the purpose ?

like image 859
Neji Avatar asked Dec 10 '12 06:12

Neji


1 Answers

I suggest Expat, I've used with many projects and it is very simple to use and has extremely small overhead. Its code base is also quite stable.

Expat is an XML parser library written in C. It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags).

However with every other external project mentioned, you need to build it yourself.

like image 136
auselen Avatar answered Sep 20 '22 09:09

auselen