Suppose I have this structure:
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
<two>
<three>3</three>
</two>
</one>
Is there anyway of getting to this :
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
</one>
using Ruby's libraries? I managed to get this using Nokogiri. From my tests, it appears to work, but maybe there's another approach, a better one.