Is there a library which could generate a xsd schema from a java class? Google yields lots of results the opposite ( java classes from xsd ).
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Illegal to have multiple roots (start tag in epilo
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
JAXB 2.0 allows you to create a XML schema from an annotated Java class.
You'll find some examples at the AMIS blog and at the JavaPassion site.
JiBX does this
Thanks for giving your method. Just wanted to add complete example.
Here is how I would do it: