sshaw / jaxb2ruby

Generate pure Ruby objects from an XML schema (XSD) using JAXB and JRuby. Use your favorite XML to object mapper or a custom ERB template.
12 stars 9 forks source link

Some fixes & improvements #2

Closed mlyashenko closed 8 years ago

mlyashenko commented 8 years ago

Hey, there is an issue i described here https://github.com/mlyashenko/jaxb2ruby/issues/1 and there are several fixes for that.

sshaw commented 8 years ago

Hi @mlyashenko, thanks for the request. Would it be possible to provide the schema that caused the errors in mlyashenko/jaxb2ruby#1?

mlyashenko commented 8 years ago

@sshaw, of course, the schema is https://gist.githubusercontent.com/mlyashenko/aed660867bbfebf4453a/raw/aaec83a4495e6b793792267194eadec03e1b4439/OTA_VehAvailRateRQ.xsd

sshaw commented 8 years ago

@sshaw, of course, the schema is...

Thanks I'll take a look.

I'd like to see what type is causing node.type.nil? and try to parse it instead.

sshaw commented 8 years ago

@mlyashenko can you also include the schema referenced in OTA_VehAvailRateRQ.xsd: OTA_VehicleCommonTypes.xsd, and any others that it may reference. Without it one cannot parse.

mlyashenko commented 8 years ago

I recreated this issue with link to schema here https://github.com/sshaw/jaxb2ruby/issues/3