Hi Deba,

First make sure you have installed libxml2.
you should see a libxl2.so file ( so is a library file in linux like jar) in /usr/lib

then while compile do this:

g++ test.cpp -o test -lxml2

notice the -lxml2 which includes the library while compiling.

Go step by step.
First try to create an xml doc.
Then try to create element for xml doc.
Then try to add attribute to xml doc.
Then dump it in a buffer.
Then try to parse that buffer.
Up to this:
Follow this thread: http://www.go4expert.com/showthread.php?t=16761

Now when you are done, let me know i will try to give you a code for persing.