xmlutil icon indicating copy to clipboard operation
xmlutil copied to clipboard

Generate data classes with the needed annotations from XSD

Open Lawrance3 opened this issue 2 years ago • 0 comments
trafficstars

First of all, I would like to thank you for this excellent library, it greatly simplifies XML serialization and deserialization. However, I'm facing a challenge when dealing with XSDs and I'm curious if there might be a more efficient solution.

For my project, I need to generate a significant number of data classes based on a XSD schema. As of now, the current workflow is rather cumbersome. It involves the following steps:

1- Using the XSD to generate XML data sample. 2- Converting this XML sample to JSON. 3- And finally, using a JSON-to-Kotlin serializer plugin to convert this JSON data to data classes. This process is quite tedious and time-consuming, and I believe there should be a more efficient way to accomplish this task.

Do you know of any existing way to directly generate these data classes from the XSD? If not, is this something you might consider adding as a feature in the future? Having this feature would greatly reduce the complexity of the workflow and improve productivity for those of us who regularly work with XML and XSDs.

Lawrance3 avatar Jun 14 '23 09:06 Lawrance3