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

Receiving String when expecting groovy.util.Node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.5
    • None
    • XML Processing
    • None
    • Groovy Version: 2.0.5 JVM: 1.7.0_07 Vendor: Oracle Corporation OS: Mac OS X

    Description

      XmlParserFactory.getXmlParser().parseText(webpage).depthFirst().find {
      assert (it instanceof groovy.util.Node)
      }

      it is sometimes a String instead of a groovy.util.Node

      Attachments

        1. 2012.html
          20 kB
          Yamir Encarnacion
        2. XmlParserTests.groovy
          0.9 kB
          Yamir Encarnacion

        Activity

          People

            paulk Paul King
            yencarnacion Yamir Encarnacion
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: