I'm parsing an SVG document, to extract the paths that it contains and convert them into UIBezier paths. However, in some files, paths are in groups that have transforms. The destination for the data doesn't have a hierarchical structure, so I have to extract the transforms from the containing groups for any path, and apply it to each path using an AffineTransform.
I can successfully detect the transform in the containing paths and grab the data required. Because the source files are potentially hierarchical, there could be transforms within transforms, so I need to store them in an array.
How do I detect the end of an element, so I can then pop the transform off the array? The parser doesn't seem to respond to the "</g>"
tag that closes the element