Solved

How to excract svg code from Adobe SVG Viewer 3.03 by script?

Posted on 2010-11-12
3
458 Views
Last Modified: 2013-12-08
I'm i a desperate situation - must use IE8 with Adobe viewer to handle SVG image.
 I'm modifying SVG image in it acessing its DOM by ECMA/Java script works OK.
But now I need to extract XML code of the changed image by script and send it to even a cgi gateway for making a transformation, something like:

var mydesiredXMLcode=myEmbedDoc.documentElement.innerHTML   which works in other browsers such as FF.

Have no idea how to do it, neither google does...

Thx


0
Comment
Question by:Ccamel1
3 Comments
 
LVL 1

Accepted Solution

by:
BitBlitz earned 500 total points
Comment Utility
Unlike full browsers the Adobe plugin doesn't treat SVG documents as HTML5 documents.  That it is supports only the SVG specification, not any HTML support like innertHTML.

However, SVG documents *are* DOM documents, so you can create what you want by walking the DOM with firstChild, nextSibling, etc.

E.g. var myXML = SerializeNode(myEmbedDoc.firstChild);

You have you write serializeNode and prefix the XML result with the <?xml> instruction.


0
 
LVL 27

Expert Comment

by:Tolomir
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Parentel Control Software 9 52
Cookie set on google chrome doesn't work when using Safari 5 33
c# code 19 55
Video won't play 5 0
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now