Hi,
I have a file written in "C". In the same file I want to parse "a.xml" file and want to extract "xyz" values like "twitter", "Facebook" and "myspace"
===================================================
<?xml version="1.0" ?>
<toplevel>
<ABC>
<xyz="twitter" />
<num="50" />
</ABC>
<ABC>
<xyz="facebook" />
<num="50" />
</ABC>
<ABC>
<xyz="myspace" />
<num="50" />
</ABC>
</toplevel>
==================================================
How can I do it in simple way :
1. Do I need to use libxml parser for the same ?
2. If, yes, then is there any way of fucntion on which I can pass file name "a.xml" and extract variable "xyz" and it will return appropriate valuses like facebook, etc.
Thanks
pj
I have a file written in "C". In the same file I want to parse "a.xml" file and want to extract "xyz" values like "twitter", "Facebook" and "myspace"
===================================================
<?xml version="1.0" ?>
<toplevel>
<ABC>
<xyz="twitter" />
<num="50" />
</ABC>
<ABC>
<xyz="facebook" />
<num="50" />
</ABC>
<ABC>
<xyz="myspace" />
<num="50" />
</ABC>
</toplevel>
==================================================
How can I do it in simple way :
1. Do I need to use libxml parser for the same ?
2. If, yes, then is there any way of fucntion on which I can pass file name "a.xml" and extract variable "xyz" and it will return appropriate valuses like facebook, etc.
Thanks
pj