code: public String getTagText(final String xmlString, final String tagName)
  			throws ParserConfigurationException, SAXException, IOException {
  
  		NodeList nodes = this.getNodeList(xmlString, tagName);
  
  		LOG.info("Elements returned = " + nodes.getLength());
  
  		Element element = (Element) nodes.item(0);
  
  		LOG.info("element text = " + element.getTextContent());
  
  		return element.getTextContent();
  
  	}
docs: You must pass the xml string and the tag name. This should be called for
  situations where you want to get the value of a simple tag:
  &lt;age&gt;18&lt;/age&gt;.
  
  In this case, in order to get the 18 value we call the method like this:
  getTagText(xml, "age"); and this will return 18
  
  The method will return the first tag it encounters.
  
  @param xmlString
  the XML string
  @param tagName
  the tag name to be searched for
  @return the value corresponding to the {@code tagName}
  
  @throws ParserConfigurationException
  if something goes wrong while parsing the XML
  @throws SAXException
  if XML is malformed
  @throws IOException
  if something goes woring when reading the file