I have a HTML5 page with a SVG element in it. I would like to load a SVG file, extract some elements from it and dispose them one by one with a script.
I used jQuery
You should take a look at the svg.import.js plugin
The documentation says...
All imported elements with an id will be stored. The object with all stored elements is returned by the import method:
var rawSvg = '