I have the following xml file:
/my_file.xml
<?xml version="1.0" encoding="utf-8" ?>
<words>
<w>my_word</w>
<w>second_word</w>
</words>
How can I do the following using Ruby:
- Load
- Parse
- Transform an xml file to an instance of a ruby array:
words = ["my_word","second_word"]