encoding/xml: ,innerxml
makes light of namespaces.
#14467
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
See the example. The result is obviously not what we wish. We have no way we can obtain and recover the context, namely the prefix-namespace correspondence, where the fragment is extracted. I found xml.go naively accumulating input stream in
saved
while,innerxml
is effective. The best solution is like the below:Namespace-aware
,innerxml
is rather expensive, so we may as well have a new flag. Millions of extensible guys are eager for a politic decision.The text was updated successfully, but these errors were encountered: