Solved

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

Posted on 2010-11-12
3
464 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
ID: 35133465
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
ID: 35422458
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Chrome SSRS print Functionality 1 61
Issue with XSLT mapping 10 43
cannot set chrome as the default browser 10 65
What browser will run Java? 7 65
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

830 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