DTD: getDTD(String name) : DTD « javax.swing.text.html.parser « Java by API






DTD: getDTD(String name)

     

import java.io.IOException;

import javax.swing.text.html.parser.DTD;

public class Main {

  public static void main(String[] args) {

    try {
      DTD d1 = DTD.getDTD("html");
      for (int i = 0; i < 14; i++) {
        System.out.println(d1.getElement(i).getName());
      }

    } catch (IOException e) {
      System.err.println(e);
      e.printStackTrace();
    }

  }

}

   
    
    
    
    
  








Related examples in the same category