Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Getting xml child name via PHP/DOM

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Getting xml child name via PHP/DOM

Postby jo1991 » Thu Jun 06, 2013 6:00 am

<doc>
<y>
<list_type>1</list_type>
<libel> lible 1</libel>

</y>
<x>
<list_type>6</list_type>
<libel> lible 2</libel>

</x>
<y>
<list_type>3</list_type>
<libel> lible 3</libel>

</y>
</doc>

hi all,
this is an extract of my big xml file. <doc> is not the root of the document, its one of the root's childs, and also it's not the first child. the question here:
how i can get the name of each child of the node <doc>?
how i can also get all the value of each child?
jo1991
New php-forum User
New php-forum User
 
Posts: 3
Joined: Thu May 30, 2013 3:46 am

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.