how convert my xml file to php array, this is my xml file:\[code\]<?xml version="1.0" standalone="yes"?><EKG_DS> <EKG_PASIEN> <DOKTER>1</DOKTER> <NO_RM>0007</NO_RM> <NAMA>DONI</NAMA> <UMUR>36</UMUR> <ALAMAT>JAKARTA</ALAMAT> <TANGGAL>28/01/2013</TANGGAL> </EKG_PASIEN> <EKG> <ID_IRAMA_DSR>2</ID_IRAMA_DSR> <DENYUT_JNTG>2</DENYUT_JNTG> <ID_REG_DENYUT_JNTG>2</ID_REG_DENYUT_JNTG> <ID_GLMBG_P>2</ID_GLMBG_P> <ID_BENTUK_GLMBG_P>2</ID_BENTUK_GLMBG_P> <ID_REG_GLMBG_P>1</ID_REG_GLMBG_P> </EKG></EKG_DS>\[/code\]i try use this code but just string... i need an array..\[code\]if (file_exists('C:/download/171_EKG.xml')) { $xml = simplexml_load_file('C:/download/171_EKG.xml'); print"<pre>"; print_r($xml);}\[/code\]please help me...