The problem is that you have embedded quote symbols.
It's the same as going. string s = "<svg width="100%" height="100%" version="1.1"";
How is the compiler suppose to know where your string starts and ends?
You need to escape your quote characters like: "<svg width=\"100%\" height=\"100%\" version=\"1.1\"";