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

XmlSlurper failures

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: XML Processing
    • Labels:
      None
    • Environment:
      SOAPUI

      Description

      def FOO_BAR_XML = """
      <a>
      <b>
      <c>
      <d>result!<x/><y/><z/></d>
      </c>
      </b>
      </a>
      """

      def foo = new XmlSlurper().parseText( FOO_BAR_XML )
      log.info foo."a.b.c.d".text()
      log.info foo."*.d".text()
      assert "result" == foo."a.b.c.d".text() , foo."a.b.c.d".text()
      assert "result" == foo."".text() , foo.".d".text()

      Both asserts fail, both should pass.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              martin.spamer Martin Spamer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: