Hi
the script works 100% like it is
just dont know how to make it work so that it scans all the XML doc's in a directory...
User Profile
Collapse
-
Multiple XML doc Count
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...Code:$xml= "file.xml"; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $tag= $xmlDoc->getElementsByTagName("tag"); $numOftag = $tag->length; echo $numOftag;
No activity results to display
Show More
Leave a comment: