Getting xml child name via PHP/DOM

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Thu May 30, 2013 3:46 am

Getting xml child name via PHP/DOM

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

<libel> lible 1</libel>

<libel> lible 2</libel>

<libel> lible 3</libel>


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?

Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 5 guests