With the following code:

```
<div id="container">
    <svg [attributes etc.]> ... </svg>
</div>

```

I would like to **dynamically change the width and height of the SVG**.

I have tried:

```
myObj = document.getElementById('container').getElementsByTagName('svg');
myObj.style.width = "400px";

```

but I get the error "undefined is not an object".

**The SVG is loaded using a server-side include**, and I can not modify it in any way, so I need to find a way to manipulate it from the outside.

I would prefer to avoid jQuery.