Hi
I found this pice of code work great
but cant get it to look in a folder and do a count of a specific tag in all XML doc's in the specified directory
any help would be appreciated
thank you
I found this pice of code work great
but cant get it to look in a folder and do a count of a specific tag in all XML doc's in the specified directory
any help would be appreciated
Code:
$xml= "file.xml";
$xmlDoc = new DOMDocument();
$xmlDoc->load($xml);
$tag= $xmlDoc->getElementsByTagName("tag");
$numOftag = $tag->length;
echo $numOftag;
Comment