I am very new to XML stuff, so i have to ask for help. I have a xml file like this:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<main>
<string name="firstname">John2</string>
<string name="secondname">Doe</string>
<string name="Street">4th</string>
<string name="City">NY</string>
</main>
I have libxml2 and i need to get the firstname
and the lastname
values.
There are many examples, but i could not find how to get a node value by its name.