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

StreamingMarkupBuilder adds namespace on elements not expected

    XMLWordPrintableJSON

Details

    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. good.xml
          4 kB
          Anton Troshin
        2. bad.xml
          5 kB
          Anton Troshin

        Activity

          People

            paulk Paul King
            sigmundl Sigmund Lundgren
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: