code: public static String node2String(final Node node, boolean prettyPrint) throws UnsupportedEncodingException
     {
        return node2String(node, prettyPrint, Constants.DEFAULT_XML_CHARSET);
     }
docs: Converts XML node in specified pretty mode using UTF-8 encoding to string.
  
  @param node XML document or element
  @param prettyPrint whether XML have to be pretty formated
  @return XML string
  @throws Exception if some error occurs