?
Solved

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

Posted on 2010-11-12
3
Medium Priority
?
477 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
2 Comments
 
LVL 1

Accepted Solution

by:
BitBlitz earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

864 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