I’m creating a code that goes to a website and collects information. I need to know how many times a tag occurs. I’ve tried a lot of counting tricks but nothing seems to work. The structure of the website is similar to the following.
I need to know how many times the tag ‘<Li’ occurred in the path Main > Second > third.
Any idea on how to do that ?
Thanks a lot for your help guys !
<Main <Second <Third <Li Information 1 </Li> <Li Information 2 </Li> <Li Information 3</Li> </Third> </Second> </Main>