I have a XML input

<field>
  <name>id</name>
  <dataType>string</dataType>
  <maxlength>42</maxlength>
  <required>false</required>
</field>

I am looking for a library or a tool which will take an XML instance document and output a corresponding XSD schema.

I am looking for some java library with which I can generate a XSD for the above XML structure

Edit
Report