Jump to content

Get data out of XML file


dfraanje

Recommended Posts

hello,

 

(firts of all, I'm not a php-expert, I just understand the code a little, but I can't write it myself..)

 

I'm using the attached php file (which I found online) to get data out of the attached xml file.(had to rename it to .doc to get it uploaded)

 

What I actually want is the following:

From every "User" element showing the attribute "LoginName",

and then show under every "LoginName" all the (element)"Contact" and (attributes) "Name" and "Email", right now I just can get the Name, or Email..

 

example what I would like to have: (using the attached iebo.xml)

 

LoginName: Dirk

Contact Name="dirk" Email="dirk@dirk.nl"

Contact Name="dirk2" Email="dirk2@dirk.nl"

LoginName: test1

Contact Name="test" Email="test@test.nl"

Contact Name="test2" Email="test2@test.nl"

 

Thanks for any help in advance

 

Dirk

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.