maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   How to read xml file in Maemo? (https://talk.maemo.org/showthread.php?t=19184)

crazymoonboy 2008-04-16 11:52

How to read xml file in Maemo?
 
Hi Friends,

How to read an xml file using Maemo SDK? Can anybody refer me a example source program link?

Thanks in advance.

Regards,
Chandra

briand 2008-04-16 13:34

Re: How to read xml file in Maemo?
 
You can read in an xml file just like you'd read in any other file.

Then, you'll probably want to parse and interpret it....

fredoll 2008-04-16 13:47

Re: How to read xml file in Maemo?
 
libxml is available with the OS ...

crazymoonboy 2008-04-17 06:57

Re: How to read xml file in Maemo?
 
Hi,

Thank you for your response. I am able to execute and include <gtk/gtk.h> file, but when I tried to include <libxml/xmlreader.h>, it is giving compilation error as below:

main.c:8:30: libxml/xmlreader.h: No such file or directory

libxml2 library is installed in my machine. I executed "find" command to search for xmlreader.h file. It displayed the below results:

/usr/include/libxml2/libxml/xmlreader.h
/scratchbox/users/mouli/targets/CHINOOK_ARMEL/usr/include/libxml2/libxml/xmlreader.h
/scratchbox/users/mouli/targets/CHINOOK_X86/usr/include/libxml2/libxml/xmlreader.h

How can I do this? Am I have to change any path settings?

Thanks in advance.

Regards,
Chandra

TA-t3 2008-04-17 09:23

Re: How to read xml file in Maemo?
 
You need to add -I /usr/include/libxml2
to your compiler options.

(when you're in scratchbox that will actually be transparently directed to one of the scratchbox paths you listed)

crazymoonboy 2008-04-17 11:10

Re: How to read xml file in Maemo?
 
Great...Thank you. It is working now.

Regards,
Chandra


All times are GMT. The time now is 17:21.

vBulletin® Version 3.8.8