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

MarkupBuilder generated xml is not well-formed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-rc-3
    • Fix Version/s: 1.5
    • Component/s: XML Processing
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: