View Single Post

  #2 (permalink)  
Old 03-19-2004, 06:42 AM
Anonymous
Guest
 
Posts: n/a
Default Re: How to loop throught all the childrens of a group elemen

Quote:
Originally Posted by chore_ashwin
I want to access all the child elements of a container element ex. <g>
and loop through them
Please help me
Look at childNodes in our tutorial
http://www.learnsvg.com/tutorial2/ex...childNodes.svg
If you want to get only true object, you have to test if child is object or only linefeed.
So your example will run in Batik, ASV and also Corel where only true objects are child.

Michel
Reply With Quote