-
-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for MatchXML #209
Conversation
8287255
to
cd318f7
Compare
Sweet! Unfortunately it looks like this broke 1.6 and 1.7 on Travis. Any chance you could take a look? |
Yes I'm trying to figure it out. |
👍 |
It seems that this particular struct field tag I will have to search for another approach, too bad... |
Possibly there could be specific code for (I did not look for other solutions yet). |
I'm no expert on the vagaries of XML support in Go but I'm OK with version dependent behavior as long as it is documented clearly in godoc and the gh-pages branch.
… On Apr 29, 2017, at 9:32 AM, Aurélien Baumann ***@***.***> wrote:
Possibly there could be specific code for <1.8, minus the support for attributes checking.
It is not super clean... what is your opinion on this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
a6b7b3d
to
e2125a3
Compare
Actual and expected can not be pretty printed in the test output because there are issues in the encoding/xml package related to deplicated namespaces. See golang/go#7535 Because Go has no support for collecting all XML attributes before 1.8 (see [here](golang/go@c1a1328)), the two following XMLs will be equal for 1.7 and before: ``` <person gender="female"> ``` ``` <person gender="male"> ```
e2125a3
to
a93bfc7
Compare
It should be ok now. |
Ok thanks. Can you submit a PR for the gh-pages docs as well? |
Done: #210 |
Sweet thanks! |
Actual and expected can not be pretty printed in the test output because
there are issues in the encoding/xml package related to deplicated
namespaces. See golang/go#7535
Because Go has no support for collecting all XML attributes before 1.8
(see here), the two following XMLs will be equal for 1.7 and before: