XML to Java Converter
Work with XML, YAML, spreadsheet data, and developer utilities locally in your browser.
Work with XML, YAML, spreadsheet data, and developer utilities locally in your browser.
Attributes and child elements become private fields with getters and setters, repeated elements become List<…> fields, and nested elements become static nested classes, so the whole result compiles as one file. Values are typed as Long, Double, Boolean or String from the sample text: <user id="7"><name>Ada</name></user> produces public class User with private Long id; and private String name;.