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

Safe number parsing methods for more convenient XML parsing

    XMLWordPrintableJSON

Details

    Description

      If the element content is empty or null the methods will return null

      This is now possible:

      xml.'**'.find { it.name() == 'someEmptyBigDecimal' }?.toBigDecimal()
      

       

       

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: