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

MarkupBuilder can't output tags with colons or hyphens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-4
    • None
    • None

    Description

      MarkupBuilder can't output namespaces or tags with hyphens in them.

      The fix should allow to use the quoted identifiers for that purpose:

      def mkp = new groovy.xml.MarkupBuilder()

      mkp."ns1:customer-description"{
      this."last-name"("Laforge")
      this."first-name"

      { first("Guillaume") this."initial-letters"("A.J.") }

      }

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: