How to read a xml file?

How to read a xml file?

I have this XML source:

There are mistakes in the first xml source, here is the good source:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fichas>   <ficha>     <first>Gabriel</first>     <last>Molina</last>     <dirs>Alfredo Vargas #36</dirs>   </ficha>   <ficha>     <first>Jorge</first>     <last>Mendoza</last>     <dirs>Alguna de por ahi #12</dirs>   </ficha> </fichas> -------------------------------------------------------

Can Anybody help me?

Never parsed XML in Ruby before but running a Google search on 'parsing xml in ruby' brought up tons of links.

In any case the second document is malformed. The closing tag for 'last' is 'ape', which might give you problems.