Reply
Thread Tools
Posts: 25 | Thanked: 1 time | Joined on Apr 2006
#1
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's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#2
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....
 
Posts: 605 | Thanked: 137 times | Joined on Nov 2005 @ La Rochelle, France
#3
libxml is available with the OS ...
 
Posts: 25 | Thanked: 1 time | Joined on Apr 2006
#4
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
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
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)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 25 | Thanked: 1 time | Joined on Apr 2006
#6
Great...Thank you. It is working now.

Regards,
Chandra
 
Reply

Thread Tools

 
Forum Jump


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