Seriously, if I cast like this:
(SVGSVGElement) (((SVGImage)blabla).getDocument().getDocumentElement())
it works, but if I try
(SVGSVGElement)doc.getElementById(some_id)
I get cast error, but both getDocumentElement() and getElementById() returns the same type org.w3c.dom.Element
, my global goal is to get the X-coordinates of some image on my svg-scene loaded from file, in order to zoom scene to make this image fit in visible area. I tried to achieve that with ((SVGSVGElement)doc.getElementById(some_id)).getBBox().getX()
but you see what I got.