I have a XML file with following schema:
<?xml version="1.0" encoding="UTF-8"?>
<languages>
<language type="persian" abbr_type="fa">
<menu>
<home></home>
<contact></contact>
<about></about>
<style></style>
</menu>
<title>
<home></home>
<contact></contact>
<about></about>
<style></style>
<list></list>
<biography></biography>
<picture></picture>
<movie></movie>
</title>
<about></about>
<welcome></welcome>
</language>
<language type="english" abbr_type="en">
<menu>
<home></home>
<contact></contact>
<about></about>
<style></style>
</menu>
<title>
<home></home>
<contact></contact>
<about></about>
<style></style>
<list></list>
<biography></biography>
<picture></picture>
<movie></movie>
</title>
<about></about>
<welcome></welcome>
</language>
I wanna get Title data if attribute of language tag is "persian".
How can I get a series of data from XML, exactly? Is there any way to get data and put in an array?