Thread: reading and writing xml using c

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    reading and writing xml using c

    how we read and write xml using c.
    i searched through google i didnot find any.
    can anyone provide me the tutorials or examples .
    thank u,
    sree.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You are dumb. four words, one click


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    thank u

    i downloaded libxml
    and i try to compile on program but geeting some error .
    they are
    i complied with:
    gcc -Wall -g -L/usr/include/libxml2 -c -o outline.o 1.c
    error:
    1.c:16:27: error: libxml/parser.h: No such file or directory
    1.c:17:25: error: libxml/tree.h: No such file or directory
    1.c:18:29: error: libxml/xinclude.h: No such file or directory
    1.c:19:26: error: libxml/xmlIO.h: No such file or directory
    1.c: In function ‘main’:
    1.c:164: warning: implicit declaration of function ‘exit’
    1.c:164: warning: incompatible implicit declaration of built-in function ‘exit’
    how we should includee libxml files

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > -L/usr/include/libxml2
    Plus
    > 1.c:16:27: error: libxml/parser.h: No such file or directory
    Must be a filename, eg
    /usr/include/libxml2/libxml/parser.h

    Figure out where you really installed it (assuming you did, and it's not just still in a zip file), and adjust the -L command line option so that libxml/parser.h can be found.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-05-2009, 03:14 AM
  2. Pipe: writing and reading.
    By apacz in forum C Programming
    Replies: 0
    Last Post: 06-07-2006, 11:12 AM
  3. Reading from and writing to same file
    By Strait in forum C++ Programming
    Replies: 2
    Last Post: 02-01-2005, 04:37 PM
  4. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 11:18 AM
  5. reading from the open socket then writing to a file...
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-06-2002, 04:15 PM