My XML file:
<?xml version="1.0" encoding="UTF-8"?>
<devices>
<device mobile="true" supported="false">Windows CE</device>
<device mobile="false" minVersion="2">Firefox</device>
<device mobile="false" minVersion="3">Safari</device>
<device mobile="false" minVersion="6">MSIE</device>
<device mobile="false" minVersion="1">Chrome</device>
</devices>
From Java, if we give input as "Firefox", the output should be mobile=false and minversion=2.
How can I get this data from the XML using Java?