Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

How to read a .xml file?

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


crazymoonboy at yahoo

Apr 16, 2008, 5:54 AM

Post #1 of 6 (1727 views)
Permalink
How to read a .xml file?

Hi Friends,

How to read a xml file using Maemo? Can anybody give me a reference of a complete example program to do this?

Thanks in advance.

Regards,
Chandra


---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


daniil.ivanov at gmail

Apr 16, 2008, 5:58 AM

Post #2 of 6 (1668 views)
Permalink
Re: How to read a .xml file? [In reply to]

Hi,

you can find examples on the page of libxml project:
http://xmlsoft.org/examples/index.html

Thanks, Daniil.

On Wed, Apr 16, 2008 at 3:54 PM, Chandra <crazymoonboy [at] yahoo> wrote:
> Hi Friends,
>
> How to read a xml file using Maemo? Can anybody give me a reference of a
> complete example program to do this?
>
> Thanks in advance.
>
> Regards,
> Chandra
>
>
> ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


eero.tamminen at nokia

Apr 16, 2008, 6:57 AM

Post #3 of 6 (1652 views)
Permalink
Re: How to read a .xml file? [In reply to]

Hi,

ext Chandra wrote:
> How to read a xml file using Maemo?

You can use either libxml2, libexpat or Glib XML parser for that.
Google for more information.


- Eero
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


crazymoonboy at yahoo

Apr 16, 2008, 11:55 PM

Post #4 of 6 (1628 views)
Permalink
Re: How to read a .xml file? [In reply to]

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


Daniil Ivanov <daniil.ivanov [at] gmail> wrote: Hi,

you can find examples on the page of libxml project:
http://xmlsoft.org/examples/index.html

Thanks, Daniil.

On Wed, Apr 16, 2008 at 3:54 PM, Chandra wrote:
> Hi Friends,
>
> How to read a xml file using Maemo? Can anybody give me a reference of a
> complete example program to do this?
>
> Thanks in advance.
>
> Regards,
> Chandra
>
>
> ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


abiryan at ryand

Apr 17, 2008, 2:27 AM

Post #5 of 6 (1623 views)
Permalink
Re: How to read a .xml file? [In reply to]

You'll want to use pkg-config in your configure and make system.

Ryan

Chandra wrote:
>
> 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
>
>
> */Daniil Ivanov <daniil.ivanov [at] gmail>/* wrote:
>
> Hi,
>
> you can find examples on the page of libxml project:
> http://xmlsoft.org/examples/index.html
>
> Thanks, Daniil.
>
> On Wed, Apr 16, 2008 at 3:54 PM, Chandra wrote:
> > Hi Friends,
> >
> > How to read a xml file using Maemo? Can anybody give me a
> reference of a
> > complete example program to do this?
> >
> > Thanks in advance.
> >
> > Regards,
> > Chandra
> >
> >
>


--
Ryan Pavlik
www.cleardefinition.com

#282 + (442) - [X]
A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


daniil.ivanov at gmail

Apr 17, 2008, 10:17 AM

Post #6 of 6 (1615 views)
Permalink
Re: How to read a .xml file? [In reply to]

Hi,

Ryan is correct on this. But you didn't say anything how you compile
your application.
In case you are using autotools, you need to add to your configure.ac
something like this
PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.31)
AC_SUBST(XML2_CFLAGS)
AC_SUBST(XML2_LIBS)

If you just using command line you can compile like this:
gcc test.c -o test -Wall -g `pkg-config gtk+-2.0 --cflags --libs`
`pkg-config libxml-2.0 --cflags --libs`

Thanks, Daniil.

On Thu, Apr 17, 2008 at 9:55 AM, Chandra <crazymoonboy [at] yahoo> wrote:
>
> 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
>
>
> Daniil Ivanov <daniil.ivanov [at] gmail> wrote:
> Hi,
>
> you can find examples on the page of libxml project:
> http://xmlsoft.org/examples/index.html
>
> Thanks, Daniil.
>
> On Wed, Apr 16, 2008 at 3:54 PM, Chandra wrote:
> > Hi Friends,
> >
> > How to read a xml file using Maemo? Can anybody give me a reference of a
> > complete example program to do this?
> >
> > Thanks in advance.
> >
> > Regards,
> > Chandra
> >
> >
> > ________________________________
> > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> > now.
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers [at] maemo
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> >
>
>
>
>
> ________________________________
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.