Generate Ruby Classes from XSD

前端 未结 3 715
说谎
说谎 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:30

    It appears that this might work.

    require 'xsd/mapping' XSD::Mapping.obj2xml(xsdBasedObject)

提交回复
热议问题