Rexle-diff: Identify changed nodes or newly created nodes

require 'rexle-diff'

xml = '
<ul>
  <li>apple</li>
  <li>orange</li>
  <li>grapes
    <color>green</color>
  </li>
</ul>
'
xml2 = '
<ul>
  <li>apple</li>
  <li>peach</li>
  <li>grapes
    <color>red</color>
  </li>
  <li>bananas</li>
</ul>
'


rd = RexleDiff.new(xml, xml2, fuzzy_match: true)

rd.created().map(&:text).join ', '  #=> peach, bananas
rd.changed().map(&:text).join ', '  #=> grapes