For example, I’ve got this XML object:
<PARENT>
<ROW>
<ID>1</ID>
<INFO>1234</INFO>
</ROW>
<ROW>
<ID>2</ID>
<INFO>4321</INFO>
</ROW>
<ROW>
<ID>3</ID>
<INFO>4444</INFO>
</ROW>
</PARENT>
in a variable called rows.
xml = Nokogiri::XML(rows)
What I need is to retrieve whole ROW subtag searching by ID inside of the ID tag.
And if you want to refine the result to one specific node, add it to the end.