PHP & XML parsing

Jake02

New Member
I have searched everything on google and still i cant seems to find a solution for this. Basically im helping my friend to create a php frontend for his ftp.The ftp details are saved in xml. So i have to parse it to a php.\[code\]<FileZillaServer><Users><User Name="anonymous"><Option Name="Pass">aaaaaa</Option><Option Name="Group"/><Option Name="Bypass server userlimit">0</Option><Option Name="User Limit">0</Option><Option Name="IP Limit">0</Option><Option Name="Enabled">1</Option><Option Name="Comments"/><Option Name="ForceSsl">0</Option><IpFilter><Disallowed/><Allowed/></IpFilter><Permissions><Permission Dir="C:\xampp\anonymous"><Option Name="FileRead">1</Option><Option Name="FileWrite">0</Option><Option Name="FileDelete">0</Option><Option Name="FileAppend">0</Option><Option Name="DirCreate">0</Option><Option Name="DirDelete">0</Option><Option Name="DirList">1</Option><Option Name="DirSubdirs">0</Option><Option Name="IsHome">1</Option><Option Name="AutoCreate">0</Option></Permission><Permission Dir="C:\xampp\anonymous\incoming"><Option Name="FileRead">1</Option><Option Name="FileWrite">1</Option><Option Name="FileDelete">0</Option><Option Name="FileAppend">0</Option><Option Name="DirCreate">0</Option><Option Name="DirDelete">0</Option><Option Name="DirList">1</Option><Option Name="DirSubdirs">0</Option><Option Name="IsHome">0</Option><Option Name="AutoCreate">0</Option></Permission></Permissions><SpeedLimits DlType="0" DlLimit="10" ServerDlLimitBypass="0" UlType="0" UlLimit="10" ServerUlLimitBypass="0"><Download/><Upload/></SpeedLimits></User></Users></FileZillaServer>\[/code\]Basically above is a sample content from XML. I need to know how to parse the content and display in PHP.Just to display Name and pass.Thank you
 
Back
Top