Hi guys
I have a tricky XML/Java situation that I need some tips on
I have an XML file
<country>
<country-name code=”USA”>
<city>City1</city>
<city>City2</city>
<city>City3</city>
</country-name>
<country-name code=”FRA”>
<city>City1</city>
<city>City2</city>
<city>City3</city>
</country-name>
</country >
Firstly I need to count how many cities per country. I know I have to get the parent and child nodes and so on
Secondly I need to display these cities names per country (if code =”FRA”)'
How do I do this in Java?
Thanks in advance!