type Params struct {
Foo *string `xmlrpc:"foo,nilTag"`
Bar string `xmlrpc:"bar"`
}
Would a patch like this be appropriate for kolo/xmlrpc? Any suggestions on better ways to work with this sort of data would be much appreciated (mostly I just want to avoid maintaining a separate fork) :)
I added this patch in order to work with an API that presents xml with any empty nil tag (i.e.
<nil/>
) when the value offoo
is nil, e.g.:To use this patch, the struct looks like below:
Would a patch like this be appropriate for
kolo/xmlrpc
? Any suggestions on better ways to work with this sort of data would be much appreciated (mostly I just want to avoid maintaining a separate fork) :)