groovy
  1. groovy
  2. GROOVY-4115

StreamingMarkupBuilder should provide an option for using double quotes around attributes

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8-beta-1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      StreamingMarkupBuilder currently only uses single quotes for attributes, e.g.:

      <?xml version='1.0'?>
      <root><a a1='one'><b>3 &lt; 5</b><c a2='two'>blah</c></a></root>
      

      it would be good to support double quotes:

      <?xml version="1.0"?>
      <root><a a1="one"><b>3 &lt; 5</b><c a2="two">blah</c></a></root>
      

        Activity

        Hide
        Paul King added a comment -

        Added. Enable as follows:

        new StreamingMarkupBuilder(useDoubleQuotes: true)
        
        Show
        Paul King added a comment - Added. Enable as follows: new StreamingMarkupBuilder(useDoubleQuotes: true )

          People

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

            Dates

            • Created:
              Updated:
              Resolved: