Jump to content

How can i count the Child Nodes in a XML File using PHP?


HumzaKhan

Recommended Posts

Hi there,

 

I have a question that how can i count the child nodes of a XML File by using PHP? Like:

<Videos>

<Video>
<Title>something</Title>
</Video>

<Video>
<Title>nothing</Title>
</Video>

</Videos>

 

So how can i count that How many times tag 'Video' occurs in the file?

 

Looking forward for your help. Thankx in Advance..

 

 

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.