I m parsing an xml file, that has nodes with text such as:
<?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>
我想得到的是这样的价值观:
country -> name.city.region*
region -> name.(population|epsilon).city*
name -> epsilon
city -> epsilon
population -> epsilon
我可以举出这样做的方法。