private void populateLookup(String xml) { try { Document doc = XMLParser.getDomElement(xml); NodeList nl = doc.getElementsByTagName("glyph"); SVGPath path; for (int i = 0; i < nl.getLength(); i++) { String index = XMLParser.getAttribute((Element) nl.item(i), "unicode"); String strPath = XMLParser.getAttribute((Element) nl.item(i), "d"); if (strPath != null && strPath.equals("") != true && index != null && index.length() > 3) { index = index.substring(3); path = new SVGPath(index, strPath); index = path.getID(); _SymbolDefinitions.put(index, path); } } } catch (Exception exc) { Log.e("SymbolSVGTable", exc.getMessage(), exc); } }