Skip to content

Conversation

sfowl
Copy link

@sfowl sfowl commented Jul 21, 2020

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 of foo is nil, e.g.:

     <struct>
        <member>
          <name>foo</name>
          <value>
            <nil/>
          </value>
        </member>
     ...
    </struct>

To use this patch, the struct looks like below:

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) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant