And if your XML happens to be formatted as
Code:
<SimpleData name="AREA">
497297
</SimpleData>
<SimpleData name="PERIMETER">
3474.15
</SimpleData>
then what?
Sure, you can bumble through with fgets() and strstr(), and build some ad-hoc one-off program that needs to be rewritten every time you need to do something slightly different.
Or, GitHub - libexpat/libexpat: Expat library: Fast XML parser in C; in the process of migrating from SourceForge to GitHub
Yes it's a lot more work up front, but at the end you'll have something of a useful skill.