Trying out RXSD for the first time using the simple example in conjunction w/Zillow API. Send me a private message for the URLs (can't publish my Zillow API key.)
xsd_uri = "http://www.zillow.com/static/xsd/SearchResults.xsd"
xml_uri = "http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=[GET YOUR OWN ZWS ID FROM ZILLOW]&address=2114+Bigelow+Ave&citystatezip=Seattle%2C+WA"
schema = RXSD::Parser.parse_xsd :uri => xsd_uri
data = RXSD::Parser.parse_xml :uri => xml_uri
objs = data.to :ruby_objects, :schema => schema
objs.each { |obj|
puts "#{obj}"
}
/home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/builders/ruby_object.rb:24:in build': undefined methodnew' for nil:NilClass (NoMethodError)
from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:118:in block in to' from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:ineach'
from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in to' from test.rb:22:insayHi'
from test.rb:30:in `'
Trying out RXSD for the first time using the simple example in conjunction w/Zillow API. Send me a private message for the URLs (can't publish my Zillow API key.)
/home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/builders/ruby_object.rb:24:in'
build': undefined method
new' for nil:NilClass (NoMethodError)from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:118:in
block in to' from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in
each'from /home/action/.gem/ruby/2.1.1/gems/rxsd-0.5.2/lib/rxsd/translator.rb:114:in
to' from test.rb:22:in
sayHi'from test.rb:30:in `