Link to home
Start Free TrialLog in
Avatar of RakeshBhandari
RakeshBhandariFlag for India

asked on

Counting xml nodes in actionscript

please look at the attached structure of the xml file

i want to count the number of <photo> in actionscript 2.0

it will be really helpful if you can directly give me a code rather than give me a link where someone has done something similar

<?xml version="1.0" encoding="ISO-8859-1" ?> 
<IgalleryX> 
  <photos>
    <photo>
      <content src="pic/10.jpg" />
      <caption content="Issue 10" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/11.jpg" />
      <caption content="Issue 11" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/12.jpg" />
      <caption content="Issue 12" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/13.jpg" />
      <caption content="Issue 13" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/14.jpg" />
      <caption content="Issue 14" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/15.jpg" />
      <caption content="Issue 15" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/16.jpg" />
      <caption content="Issue 16" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/17.jpg" />
      <caption content="Issue 17" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/18.jpg" />
      <caption content="Issue 18" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    <photo>
      <content src="pic/19.jpg" />
      <caption content="Issue 19" />
      <link src="http://www.nirmalbang.com"/>
    </photo>
    
    
    
    
  </photos> 
</IgalleryX>

Open in new window

SOLUTION
Avatar of crooksy88
crooksy88
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RakeshBhandari

ASKER

thank you!