code: public String getValueOfTagAttribute(final File xmlFile,
  			final String fileEncoding, final String tagName,
  			final String attribute) throws ParserConfigurationException,
  			SAXException, IOException {
  		return this.getValueOfTagAttribute(
  				fileUtil.getFileContentsAsString(xmlFile, fileEncoding),
  				tagName, attribute);
  	}
docs: You must pass the xml string the tag name and the attribute of the tag
  that you want to be returned This should be called for situations like
  this: &lt;age gender="male"&gt;18&lt;/age&gt;.
  
  In this case, in order to get the MALE value we call the method like
  this: getValueOfTagAttribute(xml, "age", "gender"); and this will return
  MALE
  
  The method returns the first tag it encounters.
  
  @param xmlFile
  the XML file
  @param fileEncoding
  the XML file encoding. For example "UTF-8"
  @param tagName
  the tag name to be searched for
  @param attribute
  the attribute name for the tag
  
  @return the value of the {@code attribute} 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 wrong when reading the file