Solved

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

Posted on 2010-11-12
3
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SuperAntiSpyware Licenses Discounted by 25% !

Exclusive offer to Experts Exchange Members!
Buy SuperAntiSpyware License(s) from us and save 25% on the regular purchase price.
- Includes Full SuperAntiSpyware Vendor Support Entitlements
- Your Subscription does not begin until you activate your license
- Buy for your friends

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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.
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…

738 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