Load SVG file Inline

Load an svg file as inline SVG. This provides dynamic svg applications seamless DOM access to its elements. Uses XMLHttpRequest. It can be loaded as a DIV's innerHTML via a string dump (responseText), and/or enhance XML elements then clone them as SVG elements (DOMParser) to build SVG companion elements.
responseText:   DOMParser     SVG File:
SVG File loaded as XML:

Javascript: