code: public void saveDtdSchema(final FileHandle file) {
          try {
              final Writer appendable = file.writer(false, "UTF-8");
              final boolean strict = lmlParser.isStrict();
              lmlParser.setStrict(false); // Temporary setting to non-strict to generate as much tags as possible.
              createDtdSchema(lmlParser, appendable);
              appendable.close();
              lmlParser.setStrict(strict);
          } catch (final Exception exception) {
              throw new GdxRuntimeException("Unable to save DTD schema.", exception);
          }
      }
docs: Uses current {@link LmlParser} to generate a DTD schema file with all supported tags, macros and attributes.
  Should be used only during development: DTD allows to validate LML templates during creation (and add content
  assist thanks to XML support in your IDE), but is not used in any way by the {@link LmlParser} in runtime.
  
  @param file path to the file where DTD schema should be saved. Advised to be local or absolute. Note that some
  platforms (GWT) do not support file saving - this method should be used on desktop platform and only
  during development.
  @throws GdxRuntimeException when unable to save DTD schema.
  @see Dtd