estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

extract_capabilities Client method has incorrect xpath (at least in my case) #138

Open cjjuice opened 9 years ago

cjjuice commented 9 years ago

At least in the RETS version I am working on, the RETS-RESPONSE element does not exist. The response is just under the RETS element.

e.g.

<RETS ReplyCode="0" ReplyText="Login Successful">
  MemberName=XXX
  User=XXX
  Broker=XXX
  <!-- Ect. -->
</RETS>

This causes an error when trying to perform an action because the lib does not recognize any capabilities.

I can work around it but defining capabilities when initializing the Client. However, Should this method be expanded/improved? Or is the work around sufficient?