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

interactive shell can't handle strings which span multiple lines

    XMLWordPrintableJSON

Details

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

    Description

      e.g. try the following script in the shell...

      xml = """<people>

      <person name="Rod">

      <pet name="Misha" age="8"/>

      <pet name="Bowie" age="2"/>

      </person>

      <person name="Eric">

      <pet name="Poe" age="4"/>

      <pet name="Doc" age="3"/>

      </person></people>"""

      people = new groovy.util.XmlParser().parseText( xml )

      println people.person.pet.name

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jstrachan James Strachan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: