[
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928517#comment-16928517
]
Anton Troshin commented on GROOVY-8850:
---------------------------------------
[~paulk] I confirm, stumbled upon it in the latest Groovy version which is
2.5.8, the 2.4.15 gave clean result. I have attached the two output fragments.
Note that the latest version doesn't insert namespaces into every tag but into
every third one which is weird. I suggest fixing this.
> StreamingMarkupBuilder adds namespace on elements not expected
> --------------------------------------------------------------
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Affects Versions: 2.5.3
> Reporter: Sigmund Lundgren
> Priority: Major
> Attachments: good.xml
>
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds
> namespaces to an element, did not happen in earlier versions and messes up
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <GSRL xmlns="http://www.dnb.com/GSRL/Vers7/Rls24"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <GSRLMSGSRQV1>
> <SUBJUPDTRNRQ>
> <TRNUID>GSRL7BNRSE_20181018110156</TRNUID>
> <SUBJUPDRQ xmlns="http://www.dnb.com/GSRL/Vers7/Rls24"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)