470,810 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Junk after document element

Hi everybody,

Well I have a svg file as shown below:

<svg width='500' height='550' viewbox='40 40 500 550'
<image x='40' y='40' width='500' height='550' xlink:href='MapPic.jpg'
xmlns:xlink='http://www.w3.org/1999/xlink ' />

Afterwards, I have a vb file which will do the following work:

It will create an xml doc and load the above svg file again..
Then I will append the doc by creating an element such as path and add
its attributes.
as shown below:

xmlShowPath = xmldoc.CreateElement("path")
AddAttribute(xmldoc, xmlShowPath, "d=M", getM)
AddAttribute(xmldoc, xmlShowPath, "L", getL)
AddAttribute(xmldoc, xmlShowPath, "fill", color)
AddAttribute(xmldoc, xmlShowPath, "Stroke", getColor)
AddAttribute(xmldoc, xmlShowPath, "Stroke-width", 7)

After running the application, i got the subject at line 4 column 0

Can anyone see what's causing this error?

My thnks in advance



Feb 8 '06 #1
0 3565

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andy Fish | last post: by
13 posts views Thread by Stumped and Confused | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.