I want to generate xsd for the following class
public class Node{
private String value;
private List<Node> childrens;
}
What is the best utility to generate xsd schema for such code
In general I want to implement simple tree. I’m already using jaxb for generating the classes from schema.
If you’re already using JAXB, you can use the
schemagentool for creating an XSD:There are also Ant tasks and Maven plugins for doing the same in an automated fashion.