ewildgoose / elixir-xml_rpc

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

Parse empty strings correctly. #7

Closed dalegaard closed 8 years ago

dalegaard commented 8 years ago

An empty string inside a type tag will produce an empty list as at the XML parser level, which will directly returned in the XMLRPC response. Handle this case directly.

An empty string with no type produces an :undefined value out of erlsom. This causes the parser to fail because no parse_value clause will match. Handle this case directly.

BR. /dalegaard