How can i show data in image view parsed from xml
<p>i want to create an app Employee details by parsing XML.Wherein the employee details like empid,empname,empcost etc will be displayed .i want to display the images from drawable folder as soon as i get some data from xml. Then i need when i click on each image it shows employee deatils namely : empid,empname,empcost in another activity. 
Following is my java code that shows data parsed from XML in ListView  :</p>

<p>java :</p>

<pre><code>public class XmlVdUI extends ListActivity {

    Document doc;

    private Element getChildEle(Element parentEle, String common) {

        for (Node n = parentEle.getFirstChild(); n != null; n = n
                .getNextSibling()) {
            if (n.getNodeType() == Node.ELEMENT_NODE
                    &amp;&amp; n.getNodeName().equals(common)) {
                return (Element) n;
            }
        }
        return null;
    }

    public static Iterable&lt;Element&gt; getChildren(Element common, String group) {
        List list = new ArrayList();

        for (Node n = common.getFirstChild(); n != null; n = n.getNextSibling()) {
            if (n.getNodeType() == Node.ELEMENT_NODE
                    &amp;&amp; n.getNodeName().equals(group)) {
                list.add(n);
            }
        }
        return (Iterable&lt;Element&gt;) list;

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        parseXml();

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xml_vd_ui);

        final String _EMPID = "Empid";
        final String _EMPNAME = "Name";
        final String _EMPCOST = "Empcost";

        ArrayList&lt;HashMap&lt;String, String&gt;&gt; menuItems = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();

        Element commonEle = getChildEle(doc.getDocumentElement(), "Common");

        Iterable&lt;Element&gt; groupEle = (Iterable&lt;Element&gt;) getChildren(commonEle,
                "Group"); // Iterable&lt;Element&gt;
        groupEle = (Iterable&lt;Element&gt;) getChildren(commonEle, "Group");
        System.out.println("hi");

        for (Element e : groupEle) {
            HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
            map.put(_EMPID, getValue(e, _EMPID));
            map.put(_EMPNAME, getValue(e, _EMPNAME));
            map.put(_EMPCOST, "Rs." + getValue(e, _EMPCOST));

            // adding HashList to ArrayList menuItems.add(map);
            menuItems.add(map);
        }
        ListAdapter adapter = new SimpleAdapter(this, menuItems,
                R.layout.list_item,
                new String[] { _EMPNAME, _EMPID, _EMPCOST }, new int[] {
                        R.id.name, R.id.id, R.id.cost });

        setListAdapter(adapter);

    }

    private String getValue(Element item, String str) {
        NodeList n = item.getElementsByTagName(str);

        return this.getElementValue(n.item(0));
    }

    public final String getElementValue(Node ele) {
        Node child;
        if (ele != null) {
            if (ele.hasChildNodes()) {
                for (child = ele.getFirstChild(); child != null; child = child
                        .getNextSibling()) {
                    if (child.getNodeType() == Node.TEXT_NODE) {
                        return child.getNodeValue();
                    }
                }
            }
        }
        return "";
    }

    public void parseXml() {

        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        try {
            DocumentBuilder db = dbf.newDocumentBuilder();
            InputStream in = getResources().openRawResource(R.raw.root1);
            doc = db.parse(in, null);
        } catch (ParserConfigurationException e) {
            e.printStackTrace();
        } catch (SAXException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
</code></pre>

<p>i need to display the images from drawable folder as soon as i get some data from xml rather than in ListView.</p>
