how to set text in Bold Before " | "
<p>This is my code :</p>

<pre><code>for (int i = indexRowStart; i &lt; indexRowEnd; i++) {
    Element e = (Element) nl.item(i);
    // adding each child node to HashMap key =&gt; value
    map = new HashMap&lt;String, String&gt;();
    map.put("RowID", String.valueOf(RowID)); 
    String Heading = parser.getValue(e, KEY_NAME).replace("|","|\n").replace("|","");
    map.put(KEY_NAME, Heading);
}
</code></pre>

<p>Output:</p>

<blockquote>
  <p>30 | Section 120 of the Income-tax Act, 1961 – Jurisdiction of</p>
</blockquote>

<p>After Parsing I am getting this data, I want to print the string Before <code>|</code> in BOLD letter, in this case I want to print <code>30</code> in BOLD letter.</p>

<p>Any help will be appreciated.</p>
