ewildgoose / elixir-xml_rpc

Encode and decode elixir terms to XML-RPC parameters
Apache License 2.0
40 stars 17 forks source link

Parsing of XML with empty struct fails #10

Closed albertored closed 7 years ago

albertored commented 7 years ago

My interpretation of the XML-RPC specifications is that struct tags can be empty and indeed it happened to me of retrieving XML-RPC responses with empty struct tags.

Parsing such responses with this library gives an error from erlsom because the xsd template does not allow this. Also fixing the template your library gives another error

I have done a very small patch to handle this situation, if you want I can submit a pull request

ewildgoose commented 7 years ago

Yes, please send pull request(s). Ideally break up the commits. Thanks for noticing this!

ewildgoose commented 7 years ago

Merged, thanks