title: Why is the text displayed if the tag is missing in the xml?
body: <p>You need to read the xml and display only those values where there are INNYL or INNFL tags. But if I do not have any of them in the &quot;Document&quot; or it is empty, then the output is: INNYL INNFL
  Why is that? I need nothing to be displayed in this case, since there are no values (there is no tag or it is empty).</p>
  <pre><code> def person = new XmlSlurper().parse(new File(&quot;C:\\test\\test.xml&quot;))
  
          person.Document.findAll { p -&gt;
              p.Org.@INNYL != null ||
              p.IPV.@INNFL != null
          }.each { p -&gt;
              println &quot;INNYL ${p.Org.@INNYL} INNFL ${p.IPV.@INNFL}&quot;
          }
  </code></pre>
  <p>I didn't attach XML, as you can create any.</p>