I have a large array of hashes like so:
[{:author=>"first,last",
:date=>"2014-07-02",
:msg=>"some msg",
:paths=>[file1.ext, file2.ext]
},
{:author=>"first2,last2",
:date=>"2014-06-03",
:msg=>"some other msg",
:paths=>[file12.ext, file22.ext]
},
{.......}...
]
I can't seem to figure out how to create an XML file with the form below. Does anybody have any idea?
<?xml version="1.0"?>
<log>
<logentry>
<author>first, last</author>
<date>YYYY-MM-DD</date>
<paths>
<path>path 1</path>
<path>path n</path>
</paths>
</logentry>
<logentry>
<author>first2, last2</author>
<date>YYYY-MM-DD</date>
<paths>
<path>path 1</path>
<path>path n</path>
</paths>
</logentry>
(and so forth)
</log>
<author>'s nodeValue for the 2nd<logentry>..first2, last2?