Closed jamesfcarter closed 4 years ago
package main import ( "bytes" "fmt" "github.com/divan/gorilla-xmlrpc/xml" ) func main() { var response struct { Result string } responseXML := []byte("<methodResponse><params><param><value><string></string></value></param></params></methodResponse>") err := xml.DecodeClientResponse(bytes.NewBuffer(responseXML), &response) if err != nil { fmt.Print(err) } else { fmt.Printf("%s\n", response.Result) } }
I would expect the above to output a blank line but instead it outputs:
<string></string>
Fixed in https://github.com/divan/gorilla-xmlrpc/commit/854ddeeec97535a3805f35cd0f049259e5c2e6df
I would expect the above to output a blank line but instead it outputs: