<xml>
<name>steve</name>
<age>12</age>
<country>Germany</country>
<person>
<college>kmu university</college>
<country>Sweden</country>
</person>
</xml>
Using stax parser while parsing I get country name as Germany,Sweden. But I need only Sweden not germany. Any other way to get it.I am using STAX parser to parse this xml.
Expected Output: Sweden
Actual Output:Germany,Sweden