Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: implement dual of 'omitempty' for unmarshalling «optional» fields #13417
XML is often used in legacy APIs, which are often not very consistent in the data format they output. One of such inconsistencies is emitting of nodes with empty data in case it is missing, so
If node data type is non-string, the only way to handle this in Go currently is to mark node data type as
referenced this issue
Feb 26, 2016
I am happy to take this if nobody is working on it already.
I would think that the unmarshaling behavior for
Is there a use case that I’m missing for the error that unmarshaling
Please correct me if I misunderstand the issue.