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

XmlSlurper failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • XML Processing
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: