Jump to content

getting the xml child name via php/DOM


jo1991

Recommended Posts

 <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?
Link to comment
https://forums.phpfreaks.com/topic/278843-getting-the-xml-child-name-via-phpdom/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.