You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=======Objects=======
/Library/Ruby/Gems/2.0.0/gems/rxsd-0.5.2/lib/rxsd/builders/ruby_object.rb:24:in `build': undefined method `new' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/rxsd-0.5.2/lib/rxsd/translator.rb:118:in `block in to'
from /Library/Ruby/Gems/2.0.0/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in `each'
from /Library/Ruby/Gems/2.0.0/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in `to'
from cert-input.rb:23:in `<main>'
The text was updated successfully, but these errors were encountered:
Hey @frosenberg sorry for the belated response. It's been a little while since I worked on RXSD and my memory is a bit fuzzy but I recall you needing to explicitly convert the schema to classes before converting the instance to objects.
I ran your script and was able to reproduce the error. Adding the following after the schema init but before the xml parsing got me furthur:
Unfortunately I ran into another error, this time around the "nvd:pub_date" attribute and didn't dive into it further. Note as mentioned it's been a while since I've put any cycles into rxsd and my memory is a bit fuzzy w/ the specifics of the internals. Prolly won't be able to put too much time into improving it myself but if you had anymore questions about it or wanted to add any furthur enhancements I'd be glad to help.
I have the following sample program:
As a result I get this:
The text was updated successfully, but these errors were encountered: