encoding/xml: decoding a>b>c decoration syntax should support namespaces #37133
Labels
ExpertNeeded
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, behaves same on 1.13.7
What operating system and processor architecture are you using (
go env
)?Windows/amd64 but this is repeatable at least on linux
go env
OutputWhat did you do?
I set up a struct with
I set up this set of structures
to decode this XML:
but I wanted to eliminate the second object by using a>b>c syntax. Note though that the soapenv namespace is as far as Body but not farther. So I attempted this
but it doesn't SEEM with a>b>c syntax that there's any way to have namespaces in all or (in my case) part of the xpath.
I can just eliminate the namespace requirement on Body and it actually decodes just fine, so this isn't an urgent issue at the moment, but some day I may want to be more selective. Regardless it seems the answer would be to split on > then ' ' then process it as usual.
The text was updated successfully, but these errors were encountered: