-
Notifications
You must be signed in to change notification settings - Fork 89
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
Breaking changes between 1.3.14 and 1.3.15 #102
Comments
We actually had to revert to 1.3.13 but it might be a different issue in addition to this because this particular test passes in 1.3.14... |
In version v1.3.14, I committed code to fixing #96, may be will causing this issue. in your example document, |
I am fixing, it might take a while. |
yep. it's a very strange SOAP xml we get, unfortunately it's not something we can control as it's a third-party response.
thank you, I really appreciate the fast response! |
fixed, you can try get the latest commit: 0f42df8 |
very nice, that works great for that particular test. now I got stuck on the next test, which is a little bit more complex but works on 1.3.13:
|
@slaskis, according #96(a86901e#diff-1596bd8ceb74246828aacab827b39a33075c86baa627fbbeb7491bd31eef1169R108), your XML <Cai3gFault xmlns="http://schemas.example.com/cai3g1.2/" xmlns:Cai3gFault="http://schemas.example.com/cai3g1.2/">
...
</Cai3gFault> There are no good method can sove this issue, because it will conflict with #96, if fix this issue but #96 will still output The temporary method is change your xpath to n2, err := xmlquery.Query(n1, '//S:Envelope/S:Body/ns2:Fault/detail/Cai3gFault') or you can try using xpath new feature expr, _ := xpath.CompileWithNS("//S:Envelope/S:Body/ns2:Fault/detail/Cai3gFault:Cai3gFault", map[string]string{
"S": "http://schemas.xmlsoap.org/soap/envelope/",
"ns2": "http://schemas.xmlsoap.org/soap/envelope/",
"Cai3gFault": "http://schemas.example.com/cai3g1.2/",
})
node := xmlquery.QuerySelector(n1, expr) |
We just tried to upgrade xmlquery from 1.3.14 to 1.3.15.
Seemed like a tiny version bump but we have this test which passes for 1.3.14 but fails for 1.3.15 and I just can't figure out what changed in either xmlquery or xmlpath modules to cause this:
The text was updated successfully, but these errors were encountered: