Generate Ruby Classes from XSD

前端 未结 3 761
说谎
说谎 2021-02-03 10:48

Is there a way to generate Ruby classes (maybe even ActiveResource classes) from an XSD so that they contain a way to serialize the classes to xml valid for the initial XSD?

3条回答
  •  心在旅途
    2021-02-03 11:20

    Shameless self promotion (hope this is okay on stackoverflow) but I'm working on an open source project to do just that

    Its still a work in progress (feel free to send patches) but the ultimate goal is to convert XSD to/from Ruby classes (which it does now) and convert XML conforming to that XSD to/from instances of those classes.

提交回复
热议问题