Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4585584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:30:57+00:00 2026-05-21T21:30:57+00:00

I have a C# web application which generates SVG code using RaphaelJS , which

  • 0

I have a C# web application which generates SVG code using RaphaelJS, which I then need to convert to PNG for general interoperability amongst users (please see my previous question here also)

The problem is that, rather than SVG code which seems to be the norm, Internet Explorer churns out RVML code. My solution works successfully in Firefox and other browsers by using Inkscape’s command line utility to convert the plain SVG file to PNG. But Inkscape won’t convert from RVML.

So the next logical thing to do, apart from rewrite my application to avoid RahaelJs, is to convert the RVML to SVG before running it through Inkscape. To do this I’ve found this article, and have used the code example near the top of the page. The XSL file I’ve used to convert the RVML file is the one used by VectorConverter which you can download and look at.

I should mention there are no runtime errors – all the files output in the right place, i.e. the XML -> SVG from the server-side XSLT conversion, and the SVG -> PNG from the Inkscape conversion.

To summarize the situation, when browsing through Firefox – it’s fine – when browsing through Internet explorer, the SVG file generated by the XML->SVG conversion outputs a valid SVG file but with no actual content inside the SVG tags. My question is whether anyone else has had any success in doing this task, or if anyone has any suggestions on what I’m doing wrong?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:30:58+00:00Added an answer on May 21, 2026 at 9:30 pm

    Yes, we did exactly the same thing on one of our projects. The problem is that the VML generated by RapahelJS should be altered a little bit in order to fit to the VectorConverter scheme (btw, we used scheme included in the 2nd version of this tool). Here are the changes we were making before actual transform:

    string clearedVml = new Regex("<rvml.*/rvml:group>")
        .Match(rafaelOutputVml)
        .Value
        .Replace("rvml:", "v:")
        .Replace("class=rvml", "")
        .Replace("filterMatrix", "");
    

    After that transformation result should be inserted in the following markup:

            private const string vmlFormat = 
    @"
    <?xml version=""1.0""?>
    <HTML xmlns:v = ""urn:schemas-microsoft-com:vml"" xmlns=""http://www.w3.org/1999/xhtml"">
    
    <HEAD>
    <STYLE>v\:* {{
        BEHAVIOR: url(#VMLRender)
    }}
    </STYLE>
    </HEAD>
    <BODY>
    {0}
    </BODY>
    </HTML>
    ";
    ...
    var sReader = new StringReader( String.Format( vmlFormat ,clearedVml ).Trim() );
    

    and only now the actual transform to SVG should be performed.

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small C# ASP.NET web application which generates several PNG image files
I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321
We have an ASP.NET web forms application which occasionally generates a validation error like
I have just written a Word Document creation web application using .NET 3.5 which
I have a web application which provides Excel files via IE 7. It requests
I have a PHP web application which uses a MySQL database for object tagging,
We have the usual web.xml for our web application which includes some jsp and
I have a asp.net web application which has a number of versions deployed on
I have an ASP.NET web application which does the following: Reads an Excel file.
I have a problem with a little .Net web application which uses the Amazon

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.