This is my code :
for (int i = indexRowStart; i < indexRowEnd; i++) {
Element e = (Element) nl.item(i);
// adding each child node to HashMap key => value
map = new HashMap<String, String>();
map.put("RowID", String.valueOf(RowID));
String Heading = parser.getValue(e, KEY_NAME).replace("|","|\n").replace("|","");
map.put(KEY_NAME, Heading);
}
Output:
30 | Section 120 of the Income-tax Act, 1961 – Jurisdiction of
After Parsing I am getting this data, I want to print the string Before | in BOLD letter, in this case I want to print 30 in BOLD letter.
Any help will be appreciated.
1 Answer