Read xml file using libxml2
I want to parse all the data from XML file and store in the structure so I can use that data where I want in my aplication. I am using Libxml2 library to parse the data and this is the simplest code to take the data from xml file.
- OS -> Ubuntu LINUX
- Lang -> C / C++
Code -> main.c
This is how you can simply read xml data from xml file using libxml2 parser and store into strucutre and for further use of this struct data you can pass structure object address to any function.