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

XmlNodePrinter uses quote variables for more than just attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6, 2.1.0-beta-1
    • XML Processing
    • None

    Description

      XmlNodePrinter.printEscaped is not checking isAttributeValue when deciding to use the quote variable for single quotes and double quotes. This means than in the body of an XML element it'll avoid quoting single or double quote if the quote variable is respectively a single or double quote. The quote variable should ONLY apply to attributes. This is causing the output to not be quoted when it should be.

      Attachments

        Activity

          People

            paulk Paul King
            quidryan Justin Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: