Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8850

StreamingMarkupBuilder adds namespace on elements not expected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.3
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      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

      <?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">
      ...
      

        Attachments

        1. bad.xml
          5 kB
          Anton Troshin
        2. good.xml
          4 kB
          Anton Troshin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sigmundl Sigmund Lundgren
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: