-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Tim Perrett wrote:
> I have tried it with soap4r 1.5.7 but still no joy im afraid. The schema 
> I am needing to use is at 
> http://www.cip4.org/Schema/JDFSchema_1_3_20070212.zip - its an open 
> standard used in the printing industry.

Thanks!  I found that soap4r-1.5.7 fails to cyclic schema inclusion.  I
filed a ticket here: http://dev.ctor.org/soap4r/ticket/385 and fixed it.
 Now the following command should run through the schema with many warnings.

xsd2ruby.rb --xsd JDF.xsd --classdef --mapping_registry --mapper
- --module_path JDF --force

Anyway, you seem to need XSD validation but xsd2ruby.rb is for
XML <-> Ruby object mapping so it won't help you.  After the above
command invoked, the following script can be used to convert an XML into
Ruby object.

require 'v_1_mapper'
xml = File.read("sample.xml") # loads the sample XML you posted
mapper = JDF::V_1Mapper.new
p mapper.xml2obj(xml)

// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRp+BFh9L2jg5EEGlAQIvfwf9EIIHeNSxQthMlA8wRKosgVrCH7i1+jaC
hG+9wij9DwSpUKkgjx4bVEa5t1ufqs8wNi0rYhUGTScea7iEM88Mbn3HV6q96cgl
QfVO6oyHKwXJyHnX13gFhhlN1qvd9NtW1Cf3dK4Zfgjrk7S9al/xlcE3Au23QTtK
bBSFlKlfUIXUJnqNEzja00ASP7DBoeVPZbeZFHHuNFgT2xwViCJyWvK4ADTir2V/
Jy4FmYEXZtpyagn/4rp3yap7IyjzRu3jUwZNSGF7JWwtCmTnnU1Uhdk8jMnELrwf
n/kOrx/+0jGckaWJI+9v6vFOpJxIPt8bjSu0RFSNxC3AIhRhl3YSdQ==
=asQS
-----END PGP SIGNATURE-----