I have an XML file like this

<varname>varvalue</varname>

saved as filename.xml

How would I get the all of the varnames into variables in PHP?

Thanks