Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Junk after document element

Reply
Thread Tools

Junk after document element

 
 
Dave19
Guest
Posts: n/a
 
      02-08-2006

Hi everybody,

Well I have a svg file as shown below:

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

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)

xmldoc.DocumentElement.AppendChild(xmlShowPath)


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

Rgds,

David

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
XML Parsing Error: junk after document element pbd22 XML 2 03-13-2007 12:04 AM
XML Parsing Error: Junk After Document Element pbd22 XML 17 09-11-2006 07:11 PM
Why Does Mcafee Vscan 9.0 or any version make you reboot your machine after updating. I know it's junk, but really, come on!!! Dirkley Diggler Computer Support 7 06-11-2005 09:07 AM
Why doesn't window.document.getElementById('junk') return 'undefined'? John Ramsden Javascript 6 09-12-2003 09:49 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57