how to get multi line of values out of xml??

Sample xml:

<xml name="xml"/>
<xml1 name="xml1"/>
<xml2 name="xml2"/>
<xml1 name="xml3"/>

thanks..