You can embed it as a background image, for sure, so long as the SVG
is kept in a separate file in your file system (edit: or as others have pointed out, as some variation of a data url) and referenced the same way you would any other image format. But SVG
isn't really an image format, it's more an XML
/script
hybrid.
So – nope, it's not possible to control its nodes, and that's a really good thing.
Basically, you can't modify any SVG
which isn't embedded on the page (unless its embedded in another page which in turn is then embedded in your page provided it is the same domain), and if you could you'd be opening any domain which allowed that file type to a massive XSS security vulnerability, as the SVG
spec allows for script
tags to be embedded.
img
image
background-image
content
(for pseudos)