code: private String parseXmlElement(Element element) {
          if(element.getFirstChild() instanceof Text) {
              Text text = (Text) element.getFirstChild();
              return text.getData();
          }
         
          return toXml(element);
      }
docs: Returns the XML Element as a String.
  
  @param element XML Element to format.
  
  @return XML Element as a String.