Link to home
Start Free TrialLog in
Avatar of Kaiwap
Kaiwap

asked on

XML parser

Hi all,
        Can anyone help me about this how do I parse a xml file using php?  for example i need a attribute named "USER" in the xml file.  How do I get this value from an xml and use it in an php file?

Thanks alot to all
!!
Avatar of hernst42
hernst42
Flag of Germany image

See: http://www.php.net/manual/en/function.xml-parse-into-struct.php
In the comments there are a lot of examples how to do this or how to get a strcuture wich can be searched /accessed easyer
Avatar of Kaiwap
Kaiwap

ASKER

I am sorry but i m not very good in this script.
for example i have
<?xml version = "1.0" encoding="Windows-874" ?>

      <user>user</user>
      <password>pwd</password>
                <filename>picture.jpg</filename>
      <content>albkja;dlkjoasdihfashdf;kj;eifjo;eijf</content>

if i only want the values in the filename and contents and show it on the other page
Can you give me a sample of how it is done?  
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial