KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have a HashMap with a such key: [pubDate, title, link] and such value(example): [Thu, 03 Jan 2013 21:50:02 +0100, Transferts - YBX : ''Je change de dimension'', http://www.link.fr/info/link_informations.html] Can I retrieve the link http://www.link.fr/info/link_informations.html ? Code: for (int i = 0; i < nl.getLength(); i++) { // creating new HashMap map = new HashMap<String, String>(); Element e = (Element) nl.item(i); // adding each child node to HashMap key => value map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE)); map.put(KEY_LINK, parser.getValue(e, KEY_LINK)); map.put(KEY_DATE, parser.getValue(e, KEY_DATE)); //map.put(KEY_DESC, parser.getValue(e, KEY_DESC)); // adding HashList to ArrayList menuItems.add(map); }
Tags (comma-separated)
Save Edits
Cancel