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?
It appears that this might work.
require 'xsd/mapping' XSD::Mapping.obj2xml(xsdBasedObject)