I'm parsing an xml file, that has nodes with text like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<country>
<name> France </name>
<city> Paris </city>
<region>
<name> Nord-Pas De Calais </name>
<population> 3996 </population>
<city> Lille </city>
</region>
<region>
<name> Valle du Rhone </name>
<city> Lyon </city>
<city> Valence </city>
</region>
</country>
What I want to get is values like this:
country -> name.city.region*
region -> name.(population|epsilon).city*
name -> epsilon
city -> epsilon
population -> epsilon
I can't figure out a method to do that
I have added a sample program. Please continue with reading same way.