code: @Deprecated
      public String toXml(int spaces, boolean declaration, String... attrs) {
          return toXml(spaces > 0, declaration, attrs);
      }
docs: Generates a XML document from content of this list.
  
  @param spaces by how many spaces to indent.
  @param declaration true to include XML declaration at the top
  @param attrs list of attributes to include. No arguments == include all attributes.
  @return generated XML.
  
  @deprecated Use {@link #toXml(boolean, boolean, String...)} instead