Generate Java classes from XML

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Generate a Java source file from an XML sample. Text and attributes use String, repeated elements use List, and nested structures use inner classes.

Result

     

Loading the tool…

Generate Java classes from XML guide

How do I use it?

Input
  • XML Text
Run
Generate Java

How it works and examples

Two item elements produce List<Item> and the rev attribute produces a field named attributeRev.

Input limits

Search tools