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

Please make toString on GPath XML nodes return value of text() and/or add getText() getter to node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.5
    • None
    • XML Processing
    • None

    Description

      Guys, am I missing something - it's very painful when using XmlParser and trying to get the value text of nodes, having to call text() all the time and remember it is a method.

      At the very least node.text (calling getText()) should work.

      Even better, have toString() on the node return the text instead of something that looks like the output of dump()

      Attachments

        Activity

          People

            Unassigned Unassigned
            marc@anyware.co.uk Marc Palmer
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: