How do I get the position of all elements in a HTML5 SVG element
===

I'm creating a program similar to https://moqups.com/ and I can't figure out how to get the coordinates of all elements inside a SVG tag.