code: public String toPrettyString() {
  
          StringBuilder sb = recursiveToString(this, 0, indent, new StringBuilder());
          sb.insert(0, XML_DOCTYPE + "\n");
  
          return new String(sb);
      }
docs: Returns this XML object as a formatted string using the indent.
  
  @return The formatted XML string.