Tuesday, May 19, 2009

Extracting data from the XML files Using expat on linux (XML parser)

1)Download .tar.gz files on from

http://webscripts.softpedia.com/script/Development-Scripts-js/XML-Tools/Expat--26466.html

2)extract into a folder
3) Move to this folder and run following well known commands

    ./configure
    make
    make install

4)now the times comes to check weather it is working or not.............
for this purpose expat people are very good as they have given two examples (too much i guess) in the folder expat.version/examples/. what you have have to do for checking, obviously copy a xml file from any where as you wish and run these programs.......
$>gcc examples.c -l expat
$>./a.out < xmlfile.xml

i hope you will see something which you need.

No comments:

Post a Comment

Search Ranjeet's Blog