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

MarkupBuilder generated xml is not well-formed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1-rc-3
    • 1.5
    • XML Processing
    • None

    Description

      MarkupBuilder supports creation of text nodes by supplying a text value:

      element("text")
      

      It also supports creation of nested nodes.

      element{
          child()
      }
      

      If you combine these, it produces invalid XML.

      The preferred way to do mixed content is using the mkp.yield notation but the non-recommended style of combining the above two mechanisms should still not produce invalid XML.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: